Rowles.LeanLucene.Index.Indexer
Classes
DocumentsWriterPerThread
A per-thread document buffer for concurrent indexing. Each thread accumulates postings independently; the writer merges them on flush.
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.
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.
PostingAccumulator
Accumulates doc IDs, term frequencies, and positions for a single qualified term during indexing. Uses ArrayPool-backed buffers to avoid GC pressure from repeated resize-copy-abandon cycles. Call ReturnBuffers() after flush to return rented arrays.
SchemaValidationException
Thrown when a document fails IndexSchema validation.
Interfaces
IIndexDeletionPolicy
Controls which old commit files and their referenced segments are pruned after a new commit.