Table of Contents

Public namespace Rowles.LeanLucene.Index.Indexer

Classes

Internal classInternal CommitDeletionPolicy
Internal classInternal DocumentsWriterPerThread

A per-thread document buffer for concurrent indexing. Each thread accumulates postings independently; the writer merges them on flush.

Public class FieldMapping

Describes the expected type and behaviour of a single field in an IndexSchema.

Public class IndexSchema

Defines per-field type expectations and validation rules for an index. When set on Schema, documents are validated at AddDocument(LeanDocument) time.

Public class IndexSort

Defines the sort order applied to documents within a segment at flush time. When configured, documents are physically reordered before writing.

Public class IndexWriter

Accepts documents, analyses text fields, buffers in memory, and flushes immutable segments to disk.

Public class IndexWriterConfig

Configuration for the IndexWriter.

Public class KeepLastNCommitsPolicy

Keeps the last N commit generations, deleting older ones.

Public class KeepLatestCommitPolicy

Keeps only the latest commit, deleting all older segments_N and stats_N files.

Internal classInternal 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.

Public class SchemaValidationException

Thrown when a document fails IndexSchema validation.

Interfaces

Public interface IIndexDeletionPolicy

Controls which old commit files and their referenced segments are pruned after a new commit.