Companion

object Companion

Functions

Link copied to clipboard

Returns PostingsEnum for the specified field and term. This will return null if the field or term does not exist or positions were not indexed.

Returns PostingsEnum for the specified field and term, with control over whether freqs, positions, offsets or payloads are required. Some codecs may be able to optimize their implementation when offsets and/or payloads are not required. This will return null if the field or term does not exist. See TermsEnum.postings.

Link copied to clipboard
fun getTerms(r: IndexReader, field: String?): Terms?

This method may return null if the field does not exist or if it has no terms.