public class ParentFieldMapper extends MetadataFieldMapper
Modifier and Type | Class and Description |
---|---|
static class |
ParentFieldMapper.Builder |
static class |
ParentFieldMapper.Defaults |
static class |
ParentFieldMapper.TypeParser |
FieldMapper.CopyTo, FieldMapper.MultiFields
Mapper.BuilderContext
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CONTENT_TYPE |
static java.lang.String |
NAME |
COERCE_SETTING, copyTo, defaultFieldType, fieldType, IGNORE_MALFORMED_SETTING, indexCreatedVersion, multiFields
EMPTY_PARAMS
Modifier and Type | Method and Description |
---|---|
boolean |
active() |
protected java.lang.String |
contentType() |
protected void |
doMerge(Mapper mergeWith,
boolean updateAllTypes)
Merge changes coming from
mergeWith in place. |
MappedFieldType |
getParentJoinFieldType() |
java.util.Iterator<Mapper> |
iterator() |
static java.lang.String |
joinField(java.lang.String parentType) |
protected void |
parseCreateField(ParseContext context,
java.util.List<org.apache.lucene.index.IndexableField> 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) |
java.lang.String |
type() |
merge
clone, copyTo, customBoost, doXContentAnalyzers, doXContentBody, doXContentDocValues, fieldType, indexOptionToString, indexTokenizeOption, name, parse, termVectorOptionsToString, updateFieldType
simpleName
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isFragment
public static final java.lang.String NAME
public static final java.lang.String CONTENT_TYPE
public MappedFieldType getParentJoinFieldType()
public java.lang.String type()
public void preParse(ParseContext context) throws java.io.IOException
MetadataFieldMapper
FieldMapper.parse(ParseContext)
on the RootObjectMapper
.preParse
in class MetadataFieldMapper
java.io.IOException
public void postParse(ParseContext context) throws java.io.IOException
MetadataFieldMapper
FieldMapper.parse(ParseContext)
on the RootObjectMapper
.postParse
in class MetadataFieldMapper
java.io.IOException
protected void parseCreateField(ParseContext context, java.util.List<org.apache.lucene.index.IndexableField> fields) throws java.io.IOException
FieldMapper
fields
.parseCreateField
in class FieldMapper
java.io.IOException
public static java.lang.String joinField(java.lang.String parentType)
protected java.lang.String contentType()
contentType
in class FieldMapper
public java.util.Iterator<Mapper> iterator()
iterator
in interface java.lang.Iterable<Mapper>
iterator
in class FieldMapper
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException
toXContent
in interface ToXContent
toXContent
in class FieldMapper
java.io.IOException
protected void doMerge(Mapper mergeWith, boolean updateAllTypes)
FieldMapper
mergeWith
in place.doMerge
in class FieldMapper
updateAllTypes
- TODOpublic boolean active()