Package org.elasticsearch.index.mapper
Class DocumentMapper
java.lang.Object
org.elasticsearch.index.mapper.DocumentMapper
-
Method Summary
Modifier and TypeMethodDescriptionstatic DocumentMapper
createEmpty(String type, MapperService mapperService)
Create a newDocumentMapper
that holds empty mappings.mappers()
mapping()
<T extends MetadataFieldMapper>
TmetadataMapper(Class<T> type)
parse(SourceToParse source)
toString()
type()
void
validate(IndexSettings settings, boolean checkLimits)
-
Method Details
-
createEmpty
Create a newDocumentMapper
that 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
-