Create an index on a table
Changed onCreate 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.
Request
- Base URLhttp://localhost:2333
- Auth
- OAuth 2Client credentialsToken URL: /oauth/token
- or HTTP bearer
- or API key in header x-api-key
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
{
"max_iterations": 1,
"base_tokenizer": "base_tokenizer",
"column": "column",
"max_token_length": 0,
"language": "language",
"branch": "branch",
"m": 1,
"index_type": "index_type",
"with_position": true,
"num_sub_vectors": 1,
"sample_rate": 1,
"lower_case": true,
"distance_type": "distance_type",
"identity": {
"api_key": "api_key",
"auth_token": "auth_token"
},
"context": {
"key": "context"
},
"name": "name",
"target_partition_size": 1,
"ef_construction": 1,
"ascii_folding": true,
"id": [
"id",
"id"
],
"num_partitions": 1,
"num_bits": 1,
"remove_stop_words": true,
"stem": true
}Response
Index created successfully
Example response
{
"transaction_id": "transaction_id",
"context": {
"key": "context"
}
}Changes
- info
added the new optional request property
- info
added the new optional request property
- info
added the new optional request property
- info
added the new optional request property
- info
added the new optional request property
- info
added the new optional request property
- info
added the new optional request property
- info
added the new optional request property
- info
- info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status
- info