Skip to main content

Module milli

Module milli 

Source
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.