Class PerFieldDocValuesFormat
Enables per field docvalues support.
Note, when extending this class, the name (Name) is written into the index. In order for the field to be read, the name must resolve to your implementation via ForName(String). This method uses GetDocValuesFormat(String) to resolve format names. See DefaultDocValuesFormatFactory for information about how to implement your own DocValuesFormat.
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
.
@lucene.experimental
Inherited Members
Assembly: DistributedLucene.Net.dll
Syntax
public abstract class PerFieldDocValuesFormat : DocValuesFormat
Constructors
Name | Description |
---|---|
PerFieldDocValuesFormat() | Sole constructor. |
Fields
Name | Description |
---|---|
PER_FIELD_FORMAT_KEY | FieldInfo attribute name used to store the format name for each field. |
PER_FIELD_SUFFIX_KEY | FieldInfo attribute name used to store the segment suffix name for each field. |
Methods
Name | Description |
---|---|
FieldsConsumer(SegmentWriteState) | |
FieldsProducer(SegmentReadState) | |
GetDocValuesFormatForField(String) | Returns the doc values format that should be used for writing
new segments of The field to format mapping is written to the index, so this method is only invoked when writing, not when reading. |