Package org.elasticsearch.index.mapper
Class DocumentMapper
java.lang.Object
org.elasticsearch.index.mapper.DocumentMapper
-
Method Summary
Modifier and TypeMethodDescriptionstatic DocumentMappercreateEmpty(String type, MapperService mapperService)Create a newDocumentMapperthat holds empty mappings.mappers()mapping()<T extends MetadataFieldMapper>
TmetadataMapper(Class<T> type)parse(SourceToParse source)toString()type()voidvalidate(IndexSettings settings, boolean checkLimits)
-
Method Details
-
createEmpty
Create a newDocumentMapperthat holds empty mappings.- Parameters:
type- the type of the mappings to createmapperService- the mapper service that holds the needed components- Returns:
- the newly created document mapper
-
mapping
-
type
-
mappingSource
-
metadataMapper
-
indexMapper
-
typeMapper
-
sourceMapper
-
idFieldMapper
-
routingFieldMapper
-
IndexFieldMapper
-
mappers
-
parse
- Throws:
MapperParsingException
-
validate
-
toString
-