Section navigation

Public enum FieldIndexOptions

Namespace
Rowles.LeanCorpus.Document.Fields
Assembly
Rowles.LeanCorpus.dll

Controls which postings data is written to the inverted index for a field. Lower levels save disk space and indexing time; higher levels enable phrase queries, highlighting, and scored term frequency.

public enum FieldIndexOptions

Fields

DocsAndFreqs = 1

Doc IDs and term frequencies are indexed. Enables scoring (BM25, TF-IDF) but not phrase or span queries. Good for relevance-ranked full-text where positional queries are not required.

DocsAndFreqsAndPositions = 2

Doc IDs, term frequencies, and positions are indexed. Enables phrase queries, span queries, and highlighting. Default for TextField.

DocsAndFreqsAndPositionsAndOffsets = 3

Full indexing including character offsets. Required for the unified highlighter and fast-vector highlighting. Largest on-disk footprint.

DocsOnly = 0

Only doc IDs are indexed. Suitable for filter-only fields that never participate in scoring or phrase queries. Smallest on-disk footprint.