Skip to main content

Search indexes

The search indexes of a pipeline, which hold the fragments in the form that each kind of search reads, and the distance indexes of vector indexes. Search indexes describes the index kinds, the default indexes and the life cycle of an index, and Add, rebuild or switch a search index shows each operation.

📄️Add a distance index

Adds a distance index for `cosine`, `euclidean-distance` or `dot-product` to a vector index, so that searches can use that distance strategy. The database builds the index in the background with a concurrent build, so searches and document processing continue. The response returns as soon as the build starts: the new entry of the distance index list shows `valid` set to `false` until the build completes, and the `rebuild` field of the search index reports the progress. The `max-inner-product` strategy cannot be indexed.