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 classstatic classNested classes/interfaces inherited from class org.elasticsearch.index.mapper.ObjectMapper
ObjectMapper.Defaults, ObjectMapper.Dynamic, ObjectMapper.MergeResultNested 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, subobjectsFields inherited from interface org.elasticsearch.xcontent.ToXContent
EMPTY, EMPTY_PARAMS -
Method Summary
Modifier and TypeMethodDescriptionprotected MapperBuilderContextcreateChildContext(MapperBuilderContext mapperBuilderContext, String name) booleanbooleanbooleanisNested()merge(Mapper mergeWith, MapperService.MergeReason reason, MapperBuilderContext parentBuilderContext) org.apache.lucene.search.QuerynewBuilder(IndexVersion indexVersionCreated) Create aSourceLoader.SyntheticFieldLoaderto populate synthetic source.toXContent(XContentBuilder builder, ToXContent.Params params) Methods inherited from class org.elasticsearch.index.mapper.ObjectMapper
doXContent, dynamic, fullPath, getMapper, isEnabled, iterator, merge, name, serializeMappers, startSyntheticField, subobjects, syntheticFieldLoader, typeName, validateMethods inherited from class org.elasticsearch.index.mapper.Mapper
freezeAndDeduplicateFieldType, internFieldName, simpleName, toStringMethods inherited from class java.lang.Object
clone, 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() -
isIncludeInRoot
public boolean isIncludeInRoot() -
getChildren
-
newBuilder
- Overrides:
newBuilderin 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:
toXContentin interfaceToXContent- Overrides:
toXContentin classObjectMapper- Throws:
IOException
-
merge
public ObjectMapper merge(Mapper mergeWith, MapperService.MergeReason reason, MapperBuilderContext parentBuilderContext) - Overrides:
mergein classObjectMapper
-
createChildContext
protected MapperBuilderContext createChildContext(MapperBuilderContext mapperBuilderContext, String name) - Overrides:
createChildContextin classObjectMapper
-
syntheticFieldLoader
Description copied from class:MapperCreate aSourceLoader.SyntheticFieldLoaderto populate synthetic source.- Overrides:
syntheticFieldLoaderin classObjectMapper
-