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 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.xcontent.ToXContent
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
-
Field Summary
FieldsFields inherited from class org.elasticsearch.index.mapper.ObjectMapper
dynamic, enabled, mappers, subobjects
Fields inherited from interface org.elasticsearch.xcontent.ToXContent
EMPTY_PARAMS
-
Method Summary
Modifier and TypeMethodDescriptionprotected MapperBuilderContext
createChildContext
(MapperBuilderContext mapperBuilderContext, String name) boolean
boolean
boolean
isNested()
merge
(Mapper mergeWith, MapperService.MergeReason reason, MapperBuilderContext parentBuilderContext) org.apache.lucene.search.Query
newBuilder
(Version indexVersionCreated) void
setIncludeInParent
(boolean includeInParent) void
setIncludeInRoot
(boolean includeInRoot) Create aSourceLoader.SyntheticFieldLoader
to populate synthetic source.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, serializeMappers, startSyntheticField, subobjects, syntheticFieldLoader, typeName, validate
Methods inherited from class org.elasticsearch.index.mapper.Mapper
internFieldName, simpleName, toString
Methods inherited from class java.lang.Object
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
-
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
-
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
public ObjectMapper merge(Mapper mergeWith, MapperService.MergeReason reason, MapperBuilderContext parentBuilderContext) - Overrides:
merge
in classObjectMapper
-
createChildContext
protected MapperBuilderContext createChildContext(MapperBuilderContext mapperBuilderContext, String name) - Overrides:
createChildContext
in classObjectMapper
-
syntheticFieldLoader
Description copied from class:Mapper
Create aSourceLoader.SyntheticFieldLoader
to populate synthetic source.- Overrides:
syntheticFieldLoader
in classObjectMapper
-