Table
Create an index on a table
Create an index on a table column for faster search operations. Supports vector indexes (IVF_FLAT, IVF_HNSW_SQ, IVF_PQ) and scalar indexes.
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.
Request body
Example request
{
"base_tokenizer": "base_tokenizer",
"column": "column",
"max_token_length": 0,
"language": "language",
"index_type": "BTREE",
"with_position": true,
"lower_case": true,
"name": "name",
"namespace": [
"namespace",
"namespace"
],
"metric_type": "l2",
"ascii_folding": true,
"remove_stop_words": true,
"stem": true
}Response
Index created successfully
Example response
{
"name": "name",
"namespace": [
"namespace",
"namespace"
],
"location": "location",
"properties": {
"key": "properties"
}
}