Expand description
The search projection, driven as a separate process.
The index is a projection and never the store: everything in it is derivable from the atoms, so a corrupt or missing index costs ranking quality and nothing else. Every failure here falls back to the linear scorer rather than answering with a partial index, because a wrong answer that looks complete is worse than a slower one that is.
Structs§
- Corpus
- The pack a projection is built from or searched against.
Constants§
- BIN_
VARS - Environment variables naming the search binary.
Functions§
- atom_
document - The document for one atom.
- binary
- The search binary, if this seat has one.
- delete
- Drop documents by id.
- document_
id - The primary key for one document.
- filter_
atom_ hits - Keep the atom hits the pack still says are live and in scope.
- index_
ready - Whether the projection exists on disk.
- pack_
documents - Every document a workspace projects: the two cards and its live atoms.
- reindex_
atoms - Upsert the live atoms only, leaving the prose documents alone.
- replace
- Rebuild the projection from a whole workspace.
- search
- One search against the projection, or nothing when it cannot answer.
- upsert
- Add or replace documents. An empty batch is a success.