Skip to main content

Module index

Module index 

Source
Expand description

The partition-side text index: one Tantivy directory per O partition.

Engineering rules this type enforces:

  • One writer. Tantivy permits one IndexWriter per directory; the partition holds it behind a mutex and commits per batch.
  • Commit then reload then acknowledge. Readers use [ReloadPolicy::Manual], and TextIndex::add_batch reloads before it returns. The write path sends documents before the hexastore rows, so a searchable document must exist before its row can become visible.
  • The sidecar travels with the directory. It records the analyzer, the seed length, the fingerprint and the build epoch; TextIndex::wipe clears the epoch, so an emptied index reads untrusted while its configuration survives.

Structs§

TextIndex
A text index directory, or an in-memory index in tests and the memory backend.
TextIndexOptions
The configuration an index is created with, or adopted from its sidecar.

Constants§

WRITER_MEMORY_BUDGET_BYTES
Writer memory arena. Large enough to batch a few thousand documents per segment before each per-batch commit, small enough that a plugin running beside the hexastore does not compete for RAM.