public class FieldNamesFieldMapper extends MetadataFieldMapper
_field_names. This mapper is typically useful in order
to have fast exists and missing queries/filters.
Added in Elasticsearch 1.3.| Modifier and Type | Class and Description |
|---|---|
static class |
FieldNamesFieldMapper.Builder |
static class |
FieldNamesFieldMapper.Defaults |
static class |
FieldNamesFieldMapper.FieldNamesFieldType |
static class |
FieldNamesFieldMapper.TypeParser |
FieldMapper.CopyTo, FieldMapper.MultiFieldsMapper.BuilderContextToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params| Modifier and Type | Field and Description |
|---|---|
static String |
CONTENT_TYPE |
static String |
NAME |
copyTo, defaultFieldType, fieldType, indexCreatedBefore2x, multiFieldsEMPTY_PARAMS| Modifier and Type | Method and Description |
|---|---|
protected String |
contentType() |
FieldNamesFieldMapper.FieldNamesFieldType |
fieldType() |
boolean |
isGenerated()
Fields might not be available before indexing, for example _all, token_count,...
|
Mapper |
parse(ParseContext context)
Parse using the provided
ParseContext and return a mapping
update if dynamic mappings modified the mappings, or null if
mappings were not modified. |
protected void |
parseCreateField(ParseContext context,
List<org.apache.lucene.document.Field> fields)
Parse the field value and populate
fields. |
void |
postParse(ParseContext context)
Called after
FieldMapper.parse(ParseContext) on the RootObjectMapper. |
void |
preParse(ParseContext context)
Called before
FieldMapper.parse(ParseContext) on the RootObjectMapper. |
XContentBuilder |
toXContent(XContentBuilder builder,
ToXContent.Params params) |
mergeclone, copyTo, customBoost, doMerge, doXContentAnalyzers, doXContentBody, doXContentDocValues, hasCustomFieldDataSettings, indexOptionToString, indexTokenizeOptionToString, iterator, name, termVectorOptionsToString, updateFieldTypesimpleNamepublic static final String NAME
public static final String CONTENT_TYPE
public FieldNamesFieldMapper.FieldNamesFieldType fieldType()
fieldType in class FieldMapperpublic void preParse(ParseContext context) throws IOException
MetadataFieldMapperFieldMapper.parse(ParseContext) on the RootObjectMapper.preParse in class MetadataFieldMapperIOExceptionpublic void postParse(ParseContext context) throws IOException
MetadataFieldMapperFieldMapper.parse(ParseContext) on the RootObjectMapper.postParse in class MetadataFieldMapperIOExceptionpublic Mapper parse(ParseContext context) throws IOException
FieldMapperParseContext and return a mapping
update if dynamic mappings modified the mappings, or null if
mappings were not modified.parse in class FieldMapperIOExceptionprotected void parseCreateField(ParseContext context, List<org.apache.lucene.document.Field> fields) throws IOException
FieldMapperfields.parseCreateField in class FieldMapperIOExceptionprotected String contentType()
contentType in class FieldMapperpublic XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws IOException
toXContent in interface ToXContenttoXContent in class FieldMapperIOExceptionpublic boolean isGenerated()
FieldMapperisGenerated in class FieldMapperCopyright © 2009–2017. All rights reserved.