Package org.elasticsearch.index.codec
Class PerFieldMappingPostingFormatCodec
- java.lang.Object
-
- org.apache.lucene.codecs.Codec
-
- org.apache.lucene.codecs.lucene80.Lucene80Codec
-
- org.elasticsearch.index.codec.PerFieldMappingPostingFormatCodec
-
- All Implemented Interfaces:
org.apache.lucene.util.NamedSPILoader.NamedSPI
public class PerFieldMappingPostingFormatCodec extends org.apache.lucene.codecs.lucene80.Lucene80Codec
This postings format
is the defaultPostingsFormat
for Elasticsearch. It utilizes theMapperService
to lookup aPostingsFormat
per field. This allows users to change the low level postings format for individual fields per index in real time via the mapping API. If no specific postings format is configured for a specific field the default postings format is used.
-
-
Constructor Summary
Constructors Constructor Description PerFieldMappingPostingFormatCodec(org.apache.lucene.codecs.lucene50.Lucene50StoredFieldsFormat.Mode compressionMode, MapperService mapperService, org.apache.logging.log4j.Logger logger)
-
Method Summary
Modifier and Type Method Description org.apache.lucene.codecs.PostingsFormat
getPostingsFormatForField(java.lang.String field)
-
Methods inherited from class org.apache.lucene.codecs.lucene80.Lucene80Codec
compoundFormat, docValuesFormat, fieldInfosFormat, getDocValuesFormatForField, liveDocsFormat, normsFormat, pointsFormat, postingsFormat, segmentInfoFormat, storedFieldsFormat, termVectorsFormat
-
-
-
-
Constructor Detail
-
PerFieldMappingPostingFormatCodec
public PerFieldMappingPostingFormatCodec(org.apache.lucene.codecs.lucene50.Lucene50StoredFieldsFormat.Mode compressionMode, MapperService mapperService, org.apache.logging.log4j.Logger logger)
-
-