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.MultiFieldsMapper.BuilderContext, Mapper.TypeParserToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.ParamsCOERCE_SETTING, copyTo, defaultFieldType, fieldType, IGNORE_MALFORMED_SETTING, indexCreatedVersion, multiFieldsEMPTY_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, updateFieldTypesimpleNameequals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisFragmentprotected 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 FieldMapperpublic 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 FieldMapperjava.io.IOExceptionprotected void doMerge(Mapper mergeWith, boolean updateAllTypes)
doMerge in class FieldMapperprotected java.lang.String contentType()
contentType in class FieldMapper