Package org.elasticsearch.index.mapper
Class RankFeatureMetaFieldMapper
java.lang.Object
org.elasticsearch.index.mapper.Mapper
org.elasticsearch.index.mapper.FieldMapper
org.elasticsearch.index.mapper.MetadataFieldMapper
org.elasticsearch.index.mapper.RankFeatureMetaFieldMapper
- All Implemented Interfaces:
java.lang.Cloneable,java.lang.Iterable<Mapper>,ToXContent,ToXContentFragment
public class RankFeatureMetaFieldMapper extends MetadataFieldMapper
This meta field only exists because rank feature fields index everything into a
common _feature field and Elasticsearch has a custom codec that complains
when fields exist in the index and not in mappings.
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classRankFeatureMetaFieldMapper.Builderstatic classRankFeatureMetaFieldMapper.Defaultsstatic classRankFeatureMetaFieldMapper.RankFeatureMetaFieldTypestatic classRankFeatureMetaFieldMapper.TypeParserNested classes/interfaces inherited from class org.elasticsearch.index.mapper.FieldMapper
FieldMapper.CopyTo, FieldMapper.MultiFieldsNested classes/interfaces inherited from class org.elasticsearch.index.mapper.Mapper
Mapper.BuilderContextNested classes/interfaces inherited from interface org.elasticsearch.common.xcontent.ToXContent
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params -
Field Summary
Fields Modifier and Type Field Description static java.lang.StringCONTENT_TYPEstatic java.lang.StringNAMEFields inherited from class org.elasticsearch.index.mapper.FieldMapper
COERCE_SETTING, copyTo, defaultFieldType, fieldType, IGNORE_MALFORMED_SETTING, indexCreatedVersion, multiFields -
Method Summary
Modifier and Type Method Description protected java.lang.StringcontentType()protected voidparseCreateField(ParseContext context, java.util.List<IndexableField> fields)voidpostParse(ParseContext context)voidpreParse(ParseContext context)XContentBuildertoXContent(XContentBuilder builder, ToXContent.Params params)Methods inherited from class org.elasticsearch.index.mapper.FieldMapper
clone, copyTo, createFieldNamesField, doMerge, doXContentAnalyzers, doXContentBody, doXContentDocValues, fieldType, indexOptionToString, iterator, name, parse, parsesArrayValue, termVectorOptionsToString, typeName, updateFieldType
-
Field Details
-
NAME
public static final java.lang.String NAME- See Also:
- Constant Field Values
-
CONTENT_TYPE
public static final java.lang.String CONTENT_TYPE- See Also:
- Constant Field Values
-
-
Method Details
-
preParse
- Specified by:
preParsein classMetadataFieldMapper- Throws:
java.io.IOException
-
parseCreateField
protected void parseCreateField(ParseContext context, java.util.List<IndexableField> fields) throws java.io.IOException- Specified by:
parseCreateFieldin classFieldMapper- Throws:
java.io.IOException
-
postParse
- Overrides:
postParsein classMetadataFieldMapper- Throws:
java.io.IOException
-
contentType
protected java.lang.String contentType()- Specified by:
contentTypein classFieldMapper
-
toXContent
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException- Specified by:
toXContentin interfaceToXContent- Overrides:
toXContentin classFieldMapper- Throws:
java.io.IOException
-