public final class ParentIdFieldMapper extends FieldMapper
ParentJoinFieldMapper
to index
the value that link documents in the index (parent _id or _id if the document is a parent).Modifier and Type | Class and Description |
---|---|
static class |
ParentIdFieldMapper.ParentIdFieldType |
FieldMapper.CopyTo, FieldMapper.MultiFields
Mapper.BuilderContext, Mapper.TypeParser
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
COERCE_SETTING, copyTo, defaultFieldType, fieldType, IGNORE_MALFORMED_SETTING, indexCreatedVersion, multiFields
EMPTY_PARAMS
Modifier | Constructor and Description |
---|---|
protected |
ParentIdFieldMapper(java.lang.String simpleName,
java.lang.String parentName,
java.util.Set<java.lang.String> children,
MappedFieldType fieldType,
Settings indexSettings) |
Modifier and Type | Method and Description |
---|---|
protected ParentIdFieldMapper |
clone() |
protected java.lang.String |
contentType() |
protected void |
doMerge(Mapper mergeWith,
boolean updateAllTypes) |
Query |
getChildFilter(java.lang.String type) |
java.util.Collection<java.lang.String> |
getChildren()
Returns the children names associated with this mapper.
|
Query |
getChildrenFilter() |
Query |
getParentFilter() |
java.lang.String |
getParentName()
Returns the parent name associated with this mapper.
|
protected void |
parseCreateField(ParseContext context,
java.util.List<IndexableField> fields) |
copyTo, customBoost, doXContentAnalyzers, doXContentBody, doXContentDocValues, fieldType, indexOptionToString, indexTokenizeOption, iterator, merge, name, parse, termVectorOptionsToString, toXContent, updateFieldType
simpleName
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isFragment
protected ParentIdFieldMapper(java.lang.String simpleName, java.lang.String parentName, java.util.Set<java.lang.String> children, MappedFieldType fieldType, Settings indexSettings)
protected ParentIdFieldMapper clone()
clone
in class FieldMapper
public java.lang.String getParentName()
public Query getParentFilter()
public java.util.Collection<java.lang.String> getChildren()
public Query getChildFilter(java.lang.String type)
public Query getChildrenFilter()
protected void parseCreateField(ParseContext context, java.util.List<IndexableField> fields) throws java.io.IOException
parseCreateField
in class FieldMapper
java.io.IOException
protected void doMerge(Mapper mergeWith, boolean updateAllTypes)
doMerge
in class FieldMapper
protected java.lang.String contentType()
contentType
in class FieldMapper