Rowles.LeanCorpus.Index.Indexer
Classes
FieldMapping
Describes the expected type and behaviour of a single field in an IndexSchema.
IndexSchema
Defines per-field type expectations and validation rules for an index. When set on Schema, documents are validated at AddDocument(LeanDocument) time.
IndexSort
Defines the sort order applied to documents within a segment at flush time. When configured, documents are physically reordered before writing.
IndexWriter
Accepts documents, analyses text fields, buffers in memory, and flushes immutable segments to disk. Coordinates commit, backpressure, merge, snapshot, deletion, and DWPT subsystems via dedicated manager classes.
IndexWriterConfig
Configuration for the IndexWriter.
KeepLastNCommitsPolicy
Keeps the last N commit generations, deleting older ones.
KeepLatestCommitPolicy
Keeps only the latest commit, deleting all older segments_N and stats_N files.
LogByteSizeMergePolicy
Merge policy that groups segments by log2 byte-size buckets. When a bucket reaches the threshold, the smallest segments in that bucket are returned as merge candidates. This avoids the tiered policy's worst case where many tiny segments merge into one giant while more tiny ones accumulate.
NoMergePolicy
Merge policy that never triggers automatic merges. Use for bulk-load-then-merge-once workflows where all merging is performed manually via Compact() or ForceMerge(int).
SchemaValidationException
Thrown when a document fails IndexSchema validation.
TieredMergePolicy
Selects balanced merges using physical bytes and reclaimable deletions.
Interfaces
IIndexDeletionPolicy
Controls which old commit files and their referenced segments are pruned after a new commit.
IMergePolicy
Controls which segments are selected for merging during indexing.