Package org.elasticsearch.index.mapper
Class NestedObjectMapper
java.lang.Object
org.elasticsearch.index.mapper.Mapper
org.elasticsearch.index.mapper.ObjectMapper
org.elasticsearch.index.mapper.NestedObjectMapper
- All Implemented Interfaces:
Cloneable,Iterable<Mapper>,ToXContent,ToXContentFragment
A Mapper for nested objects
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classNested classes/interfaces inherited from class org.elasticsearch.index.mapper.ObjectMapper
ObjectMapper.Defaults, ObjectMapper.DynamicNested classes/interfaces inherited from interface org.elasticsearch.xcontent.ToXContent
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params -
Field Summary
FieldsFields inherited from class org.elasticsearch.index.mapper.ObjectMapper
dynamic, enabled, mappersFields inherited from interface org.elasticsearch.xcontent.ToXContent
EMPTY_PARAMS -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanbooleanisNested()merge(Mapper mergeWith, MapperService.MergeReason reason) org.apache.lucene.search.QueryvoidsetIncludeInParent(boolean includeInParent) voidsetIncludeInRoot(boolean includeInRoot) toXContent(XContentBuilder builder, ToXContent.Params params) Methods inherited from class org.elasticsearch.index.mapper.ObjectMapper
clone, doMerge, doXContent, dynamic, fullPath, getMapper, isEnabled, iterator, merge, name, putMapper, serializeMappers, typeName, validateMethods inherited from class org.elasticsearch.index.mapper.Mapper
simpleNameMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliteratorMethods inherited from interface org.elasticsearch.xcontent.ToXContentFragment
isFragment
-
Field Details
-
CONTENT_TYPE
- See Also:
-
-
Method Details
-
nestedTypeFilter
public org.apache.lucene.search.Query nestedTypeFilter() -
nestedTypePath
-
isNested
public boolean isNested()- Overrides:
isNestedin classObjectMapper
-
isIncludeInParent
public boolean isIncludeInParent() -
setIncludeInParent
public void setIncludeInParent(boolean includeInParent) -
isIncludeInRoot
public boolean isIncludeInRoot() -
setIncludeInRoot
public void setIncludeInRoot(boolean includeInRoot) -
getChildren
-
toXContent
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws IOException - Specified by:
toXContentin interfaceToXContent- Overrides:
toXContentin classObjectMapper- Throws:
IOException
-
merge
- Overrides:
mergein classObjectMapper
-