DirectPostingsFormat

class DirectPostingsFormat(minSkipCount: Int = DEFAULT_MIN_SKIP_COUNT, lowFreqCutoff: Int = DEFAULT_LOW_FREQ_CUTOFF) : PostingsFormat

Wraps {@link Lucene101PostingsFormat} format for on-disk storage, but then at read time loads and stores all terms and postings directly in RAM as byte[], int[].

WARNING: This is exceptionally RAM intensive: it makes no effort to compress the postings data, storing terms as separate byte[] and postings as separate int[], but as a result it gives substantial increase in search performance.

This postings format supports {@link TermsEnum#ord} and {@link TermsEnum#seekExact(long)}.

Because this holds all term bytes as a single byte[], you cannot have more than 2.1GB worth of term bytes in a single segment.

Constructors

Link copied to clipboard
constructor(minSkipCount: Int = DEFAULT_MIN_SKIP_COUNT, lowFreqCutoff: Int = DEFAULT_LOW_FREQ_CUTOFF)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
open override val name: String

Functions

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override fun toString(): String