java.lang.Object
org.elasticsearch.index.mapper.Mapper
org.elasticsearch.index.mapper.ObjectMapper
org.elasticsearch.index.mapper.NestedObjectMapper
- All Implemented Interfaces:
Iterable<Mapper>
,ToXContent
,ToXContentFragment
A Mapper for nested objects
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
static class
Nested classes/interfaces inherited from class org.elasticsearch.index.mapper.ObjectMapper
ObjectMapper.Defaults, ObjectMapper.Dynamic, ObjectMapper.MergeResult, ObjectMapper.Subobjects
Nested classes/interfaces inherited from class org.elasticsearch.index.mapper.Mapper
Mapper.SourceKeepMode
Nested 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, mappers, sourceKeepMode, SUB_OBJECTS_AUTO_FEATURE_FLAG, subobjects
Fields inherited from class org.elasticsearch.index.mapper.Mapper
SYNTHETIC_SOURCE_KEEP_FEATURE, SYNTHETIC_SOURCE_KEEP_INDEX_SETTING, SYNTHETIC_SOURCE_KEEP_PARAM
Fields inherited from interface org.elasticsearch.xcontent.ToXContent
EMPTY, EMPTY_PARAMS
-
Method Summary
Modifier and TypeMethodDescriptionFunction
<org.apache.lucene.search.Query, org.apache.lucene.search.join.BitSetProducer> protected MapperMergeContext
createChildContext
(MapperMergeContext mapperMergeContext, String name) boolean
boolean
boolean
isNested()
merge
(Mapper mergeWith, MapperMergeContext parentMergeContext) Return the merge ofmergeWith
into this.org.apache.lucene.search.Query
newBuilder
(IndexVersion indexVersionCreated) org.apache.lucene.search.Query
toXContent
(XContentBuilder builder, ToXContent.Params params) Methods inherited from class org.elasticsearch.index.mapper.ObjectMapper
doXContent, dynamic, findParentMapper, fullPath, getMapper, getTotalFieldsCount, isEnabled, isRoot, iterator, serializeMappers, sourceKeepMode, subobjects, typeName, validate
Methods inherited from class org.elasticsearch.index.mapper.Mapper
freezeAndDeduplicateFieldType, internFieldName, leafName, toString
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.lang.Iterable
forEach, spliterator
Methods inherited from interface org.elasticsearch.xcontent.ToXContentFragment
isFragment
-
Field Details
-
CONTENT_TYPE
- See Also:
-
-
Method Details
-
indexSettings
-
parentTypeFilter
public org.apache.lucene.search.Query parentTypeFilter() -
nestedTypeFilter
public org.apache.lucene.search.Query nestedTypeFilter() -
nestedTypePath
-
isNested
public boolean isNested()- Overrides:
isNested
in classObjectMapper
-
isIncludeInParent
public boolean isIncludeInParent() -
isIncludeInRoot
public boolean isIncludeInRoot() -
bitsetProducer
public Function<org.apache.lucene.search.Query,org.apache.lucene.search.join.BitSetProducer> bitsetProducer() -
getChildren
-
newBuilder
- Overrides:
newBuilder
in classObjectMapper
- Returns:
- a Builder that will produce an empty ObjectMapper with the same configuration as this one
-
toXContent
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws IOException - Specified by:
toXContent
in interfaceToXContent
- Overrides:
toXContent
in classObjectMapper
- Throws:
IOException
-
merge
Description copied from class:Mapper
Return the merge ofmergeWith
into this. Boththis
andmergeWith
will be left unmodified.- Overrides:
merge
in classObjectMapper
-
createChildContext
- Overrides:
createChildContext
in classObjectMapper
-