Package org.elasticsearch.index.mapper
Class ObjectMapper
org.elasticsearch.index.mapper.Mapper
org.elasticsearch.index.mapper.ObjectMapper
- All Implemented Interfaces:
,
<Mapper>
,org.elasticsearch.common.xcontent.ToXContent
,org.elasticsearch.common.xcontent.ToXContentFragment
- Direct Known Subclasses:
RootObjectMapper
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static class
static class
static class
static class
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 interface org.elasticsearch.common.xcontent.ToXContent
EMPTY_PARAMS
-
Method Summary
Modifier and TypeMethodDescriptionprotected ObjectMapper
clone()
protected void
doMerge(ObjectMapper mergeWith, MapperService.MergeReason reason)
protected void
doXContent(org.elasticsearch.common.xcontent.XContentBuilder builder, org.elasticsearch.common.xcontent.ToXContent.Params params)
dynamic()
fullPath()
field)
boolean
<Mapper>
iterator()
Return the merge ofmergeWith
into this.merge(Mapper mergeWith, MapperService.MergeReason reason)
name()
Returns the canonical name which uniquely identifies the mapper against other mappers in a type.nested()
org.apache.lucene.search.Query
protected void
org.elasticsearch.common.xcontent.XContentBuilder
toXContent(org.elasticsearch.common.xcontent.XContentBuilder builder, org.elasticsearch.common.xcontent.ToXContent.Params params)
typeName()
Returns a name representing the type of this mapper.void
validate(MappingLookup mappers)
Validate any cross-field references made by this mapperMethods inherited from class org.elasticsearch.index.mapper.Mapper
simpleName
Methods inherited from class java.lang.
, , , , , , , , ,
Methods inherited from interface java.lang.
,
Methods inherited from interface org.elasticsearch.common.xcontent.ToXContentFragment
isFragment
-
Field Details
-
CONTENT_TYPE
public static final CONTENT_TYPE- See Also:
- Constant Field Values
-
NESTED_CONTENT_TYPE
public static final NESTED_CONTENT_TYPE- See Also:
- Constant Field Values
-
-
Method Details
-
clone
- Overrides:
in class
-
name
public name()Description copied from class:Mapper
Returns the canonical name which uniquely identifies the mapper against other mappers in a type. -
typeName
public typeName()Description copied from class:Mapper
Returns a name representing the type of this mapper. -
isEnabled
public boolean isEnabled() -
getMapper
public field) -
nested
-
nestedTypeFilter
public org.apache.lucene.search.Query nestedTypeFilter() -
putMapper
-
iterator
- Specified by:
in interface
<Mapper>
-
fullPath
public fullPath() -
nestedTypePathAsString
public nestedTypePathAsString() -
dynamic
-
merge
Description copied from class:Mapper
Return the merge ofmergeWith
into this. Boththis
andmergeWith
will be left unmodified. -
validate
Description copied from class:Mapper
Validate any cross-field references made by this mapper- Specified by:
validate
in classMapper
- Parameters:
mappers
- aMappingLookup
that can produce references to other mappers
-
merge
-
doMerge
-
toXContent
public org.elasticsearch.common.xcontent.XContentBuilder toXContent(org.elasticsearch.common.xcontent.XContentBuilder builder, org.elasticsearch.common.xcontent.ToXContent.Params params) throws- Specified by:
toXContent
in interfaceorg.elasticsearch.common.xcontent.ToXContent
- Throws:
-
doXContent
protected void doXContent(org.elasticsearch.common.xcontent.XContentBuilder builder, org.elasticsearch.common.xcontent.ToXContent.Params params) throws- Throws:
-