docs: clarify custom index naming and release guidance

This commit is contained in:
Gatefixer
2026-11-12 20:12:29 +00:00
parent bc33ed6f49
commit e60af681d8
3 changed files with 23 additions and 4 deletions
+4 -2
View File
@@ -354,8 +354,10 @@ Indices on vector columns will speed up vector searches.
Indices on scalar columns will speed up filtering (in both
vector and non-vector searches)
We currently don't support custom named indexes.
The index name will always be `${column}_idx`.
The index name defaults to `${column}_idx`. Set [IndexOptions.name](../interfaces/IndexOptions.md#name)
to use a custom name containing 1–128 ASCII letters, digits, dashes,
underscores, or periods, excluding `.` and `..`.
See [IndexOptions.name](../interfaces/IndexOptions.md#name) for legacy-name cleanup guidance.
On LanceDB Embedded tables the index is built before the returned promise
resolves. On LanceDB Enterprise tables it resolves once the build is
+15
View File
@@ -339,6 +339,21 @@ These fields are populated for LanceDB Embedded tables. In LanceDB Enterprise, `
The `{column}_idx` suffix is the default naming convention.
Pass `name=...` to `create_index()` to override it. Once set, the custom name will be reflected in `list_indices()`, `index_stats(name)`, and `wait_for_index([name])`.
{/*
Draft for the index-name validation release (#5007). Publish this guidance
after the SDK changes ship.
Custom index names must contain 1–128 ASCII letters, digits, dashes,
underscores, or periods, excluding `.` and `..`. These restrictions apply
when you supply a name to `create_index()`; generated names still use the
column name and remain usable through index operations.
Remote tables reject empty names, `.` and `..` in index operations to prevent
URL path normalization. Existing indexes named `.` or `..` require
server-side cleanup on managed tables, or a native connection with direct
access to the dataset. Other existing names remain usable.
*/}
<CodeGroup>
<CodeBlock filename="Python" language="Python" icon="python">
{VectorIndexCustomName}