VariableGapTermsIndexWriter
class VariableGapTermsIndexWriter(state: SegmentWriteState, policy: VariableGapTermsIndexWriter.IndexTermSelector) : TermsIndexWriterBase
Selects index terms according to provided pluggable IndexTermSelector, and stores them in a prefix trie that's loaded entirely in RAM stored as an FST. This terms index only supports unsigned byte term sort order (unicode codepoint order when the bytes are UTF8).
Types
Link copied to clipboard
class EveryNOrDocFreqTermSelector(docFreqThresh: Int, interval: Int) : VariableGapTermsIndexWriter.IndexTermSelector
Sets an index term when docFreq >= docFreqThresh, or every interval terms. This should reduce seek time to high docFreq terms.
Link copied to clipboard
Same policy as FixedGapTermsIndexWriter
Link copied to clipboard
Hook for selecting which terms should be placed in the terms index.