IndexSpec. Three index types,
chained fluently.
Declare a full-text and a vector index on a table to enable
hybrid search. Scalar columns need no index; filter them
with SQL.
An index is part of a column’s identity. You cannot add an index to an existing
column, change its options, or change a vector column’s metric or dimension: create a new
table and re-ingest. What you can do after creation is add a new column that carries a
full-text or range index, with a schema patch on the connection (a vector index can only
be declared at creation):
Full-text index: fts(column)
Builds a BM25 inverted index over a text column, powering bm25_search, token_match,
and the hybrid / pushdown-filter paths. Call fts once per text column you want to search.
Each option is recorded with the table at create time and cannot be changed afterwards.
Vector index: vector(column, dim, metric)
Builds an IVF (inverted-file) vector index for kNN.
Partitioning is automatic. The engine derives the IVF partition (centroid) count
from the data when the index is built, and it calibrates probe width and rerank budget
per table and per
k at query time. There are no partition or probe knobs to set, and
the same declaration works from thousands of rows to hundreds of millions.
You can index multiple text columns (call
fts per column); a table currently supports only one vector column.
Scalar columns need no index declaration. Filter them with SQL (query_sql); vector search’s
pushdown pre-filter is a text predicate over an FTS-indexed column (see Search).