mirror of
https://github.com/lancedb/lancedb.git
synced 2026-11-29 14:03:59 +00:00
fix: preserve index names and isolate unsafe legacy listings
This commit is contained in:
@@ -949,9 +949,6 @@ export interface IndexOptions {
|
||||
/**
|
||||
* Optional custom name for the index.
|
||||
*
|
||||
* Custom names must contain 1–128 ASCII letters, digits, dashes, underscores,
|
||||
* or periods, excluding `.` and `..`.
|
||||
*
|
||||
* If not provided, a default name will be generated based on the column name.
|
||||
* Existing and generated names remain addressable through index operations,
|
||||
* except that remote tables reject empty names, `.` and `..` to prevent URL
|
||||
|
||||
@@ -471,8 +471,7 @@ export abstract class Table {
|
||||
* vector and non-vector searches)
|
||||
*
|
||||
* The index name defaults to `${column}_idx`. Set {@link IndexOptions.name}
|
||||
* to use a custom name containing 1–128 ASCII letters, digits, dashes,
|
||||
* underscores, or periods, excluding `.` and `..`.
|
||||
* to use a custom name.
|
||||
* See {@link IndexOptions.name} for legacy-name cleanup guidance.
|
||||
*
|
||||
* On LanceDB Embedded tables the index is built before the returned promise
|
||||
@@ -1236,6 +1235,9 @@ export abstract class Table {
|
||||
/**
|
||||
* List all indices that have been created with {@link Table.createIndex}
|
||||
*
|
||||
* On older Enterprise servers, this method omits indices named `.`, `..` or
|
||||
* the empty string because their statistics cannot be requested safely.
|
||||
*
|
||||
* On LanceDB Enterprise tables, an index whose build hasn't finished may be
|
||||
* missing (vector indices) or listed with 0 indexed rows (scalar and FTS
|
||||
* indices), and `numUnindexedRows` may be undefined. Use
|
||||
|
||||
Reference in New Issue
Block a user