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>,org.elasticsearch.xcontent.ToXContent,org.elasticsearch.xcontent.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
org.elasticsearch.xcontent.ToXContent.DelegatingMapParams, org.elasticsearch.xcontent.ToXContent.MapParams, org.elasticsearch.xcontent.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.QuerynewBuilder(Version indexVersionCreated) voidsetIncludeInParent(boolean includeInParent) voidsetIncludeInRoot(boolean includeInRoot) org.elasticsearch.xcontent.XContentBuildertoXContent(org.elasticsearch.xcontent.XContentBuilder builder, org.elasticsearch.xcontent.ToXContent.Params params) Methods inherited from class org.elasticsearch.index.mapper.ObjectMapper
clone, doMerge, doXContent, dynamic, fullPath, getMapper, isEnabled, iterator, merge, name, serializeMappers, typeName, validateMethods inherited from class org.elasticsearch.index.mapper.Mapper
simpleName, toStringMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, 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
-
newBuilder
- Overrides:
newBuilderin classObjectMapper- Returns:
- a Builder that will produce an empty ObjectMapper with the same configuration as this one
-
toXContent
public org.elasticsearch.xcontent.XContentBuilder toXContent(org.elasticsearch.xcontent.XContentBuilder builder, org.elasticsearch.xcontent.ToXContent.Params params) throws IOException - Specified by:
toXContentin interfaceorg.elasticsearch.xcontent.ToXContent- Overrides:
toXContentin classObjectMapper- Throws:
IOException
-
merge
- Overrides:
mergein classObjectMapper
-