PerFieldDocValuesFormat

Enables per field docvalues support.

Note, when extending this class, the name (.getName) is written into the index. In order for the field to be read, the name must resolve to your implementation via .forName. This method uses Java's ServiceLoader to resolve format names.

Files written by each docvalues format have an additional suffix containing the format name. For example, in a per-field configuration instead of _1.dat filenames would look like _1_Lucene40_0.dat.

See also

ServiceLoader

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
open lateinit override var name: String

Unique name that's used to retrieve this format when reading the index.

Functions

Link copied to clipboard

Returns a DocValuesConsumer to write docvalues to the index.

Link copied to clipboard

Returns a DocValuesProducer to read docvalues from the index.

Link copied to clipboard

Returns the doc values format that should be used for writing new segments of field * .

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