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.common.xcontent.ToXContent
,org.elasticsearch.common.xcontent.ToXContentFragment
A Mapper for nested objects
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static class
Nested classes/interfaces inherited from class org.elasticsearch.index.mapper.ObjectMapper
ObjectMapper.Defaults, ObjectMapper.Dynamic
Nested classes/interfaces inherited from interface org.elasticsearch.common.xcontent.ToXContent
org.elasticsearch.common.xcontent.ToXContent.DelegatingMapParams, org.elasticsearch.common.xcontent.ToXContent.MapParams, org.elasticsearch.common.xcontent.ToXContent.Params
-
Field Summary
Fields inherited from class org.elasticsearch.index.mapper.ObjectMapper
dynamic, enabled, mappers
Fields inherited from interface org.elasticsearch.common.xcontent.ToXContent
EMPTY_PARAMS
-
Method Summary
Modifier and TypeMethodDescriptionboolean
boolean
boolean
isNested()
merge(Mapper mergeWith, MapperService.MergeReason reason)
org.apache.lucene.search.Query
void
setIncludeInParent(boolean includeInParent)
void
setIncludeInRoot(boolean includeInRoot)
org.elasticsearch.common.xcontent.XContentBuilder
toXContent(org.elasticsearch.common.xcontent.XContentBuilder builder, org.elasticsearch.common.xcontent.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, validate
Methods inherited from class org.elasticsearch.index.mapper.Mapper
simpleName
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.lang.Iterable
forEach, spliterator
Methods inherited from interface org.elasticsearch.common.xcontent.ToXContentFragment
isFragment
-
Field Details
-
CONTENT_TYPE
- See Also:
- Constant Field Values
-
-
Method Details
-
nestedTypeFilter
public org.apache.lucene.search.Query nestedTypeFilter() -
nestedTypePath
-
isNested
public boolean isNested()- Overrides:
isNested
in classObjectMapper
-
isIncludeInParent
public boolean isIncludeInParent() -
setIncludeInParent
public void setIncludeInParent(boolean includeInParent) -
isIncludeInRoot
public boolean isIncludeInRoot() -
setIncludeInRoot
public void setIncludeInRoot(boolean includeInRoot) -
getChildren
-
toXContent
public org.elasticsearch.common.xcontent.XContentBuilder toXContent(org.elasticsearch.common.xcontent.XContentBuilder builder, org.elasticsearch.common.xcontent.ToXContent.Params params) throws IOException- Specified by:
toXContent
in interfaceorg.elasticsearch.common.xcontent.ToXContent
- Overrides:
toXContent
in classObjectMapper
- Throws:
IOException
-
merge
- Overrides:
merge
in classObjectMapper
-