public class PerFieldMappingPostingFormatCodec
extends org.apache.lucene.codecs.lucene410.Lucene410Codec
This postings format is the default
PostingsFormat for Elasticsearch. It utilizes the
MapperService to lookup a PostingsFormat 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 and Description |
|---|
PerFieldMappingPostingFormatCodec(MapperService mapperService,
org.apache.lucene.codecs.PostingsFormat defaultPostingFormat,
org.apache.lucene.codecs.DocValuesFormat defaultDocValuesFormat,
ESLogger logger) |
| Modifier and Type | Method and Description |
|---|---|
org.apache.lucene.codecs.DocValuesFormat |
getDocValuesFormatForField(String field) |
org.apache.lucene.codecs.PostingsFormat |
getPostingsFormatForField(String field) |
docValuesFormat, fieldInfosFormat, liveDocsFormat, normsFormat, postingsFormat, segmentInfoFormat, storedFieldsFormat, termVectorsFormatpublic PerFieldMappingPostingFormatCodec(MapperService mapperService, org.apache.lucene.codecs.PostingsFormat defaultPostingFormat, org.apache.lucene.codecs.DocValuesFormat defaultDocValuesFormat, ESLogger logger)
public org.apache.lucene.codecs.PostingsFormat getPostingsFormatForField(String field)
getPostingsFormatForField in class org.apache.lucene.codecs.lucene410.Lucene410Codecpublic org.apache.lucene.codecs.DocValuesFormat getDocValuesFormatForField(String field)
getDocValuesFormatForField in class org.apache.lucene.codecs.lucene410.Lucene410CodecCopyright © 2009–2016. All rights reserved.