Table
Index
Metadata
Create an index on a table
Create an index on a table field for faster search operations. Supports vector indexes (IVF_FLAT, IVF_HNSW_SQ, IVF_PQ, etc.) and scalar indexes (BTREE, BITMAP, FTS, etc.). Index creation is handled asynchronously. Use the ListTableIndices and DescribeTableIndexStats operations to monitor index creation progress.
post/v1/table/{id}/create_index
Path parameters
idstring required
string identifier of an object in a namespace, following the Lance Namespace spec. When the value is equal to the delimiter, it represents the root namespace. For example, v1/namespace/$/list performs a ListNamespace on the root namespace.
Query parameters
delimiterstring
An optional delimiter of the string identifier, following the Lance Namespace spec. When not specified, the $ delimiter must be used.
Request body
Example request
{
"base_tokenizer": "base_tokenizer",
"column": "column",
"max_token_length": 0,
"language": "language",
"branch": "branch",
"index_type": "index_type",
"with_position": true,
"lower_case": true,
"distance_type": "distance_type",
"identity": {
"api_key": "api_key",
"auth_token": "auth_token"
},
"context": {
"key": "context"
},
"name": "name",
"ascii_folding": true,
"id": [
"id",
"id"
],
"remove_stop_words": true,
"stem": true
}Response
Index created successfully
Example response
{
"transaction_id": "transaction_id",
"context": {
"key": "context"
}
}