Create a scalar index on a table
Create a scalar index on a table field for faster filtering operations. Supports scalar indexes (BTREE, BITMAP, LABEL_LIST, FTS, etc.). This is an alias for CreateTableIndex specifically for scalar indexes. Index creation is handled asynchronously. Use the ListTableIndices and DescribeTableIndexStats operations to monitor index creation progress.
Path parameters
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
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
Scalar index created successfully
Example response
{
"transaction_id": "transaction_id",
"context": {
"key": "context"
}
}