fix: preserve index names and isolate unsafe legacy listings

This commit is contained in:
Gatefixer
2026-11-27 13:51:03 +00:00
parent 2e487d5ac4
commit 6b25e10810
12 changed files with 222 additions and 183 deletions
-3
View File
@@ -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
+4 -2
View File
@@ -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