Expand description
The partition-side text index: one Tantivy directory per O partition.
Engineering rules this type enforces:
- One writer. Tantivy permits one
IndexWriterper directory; the partition holds it behind a mutex and commits per batch. - Commit then reload then acknowledge. Readers use
[
ReloadPolicy::Manual], andTextIndex::add_batchreloads 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::wipeclears the epoch, so an emptied index reads untrusted while its configuration survives.
Structs§
- Text
Index - A text index directory, or an in-memory index in tests and the memory backend.
- Text
Index Options - 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.