Package org.elasticsearch.index.mapper
Class DocumentMapperParser
- java.lang.Object
-
- org.elasticsearch.index.mapper.DocumentMapperParser
-
public class DocumentMapperParser extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description DocumentMapperParser(IndexSettings indexSettings, MapperService mapperService, IndexAnalyzers indexAnalyzers, NamedXContentRegistry xContentRegistry, SimilarityService similarityService, MapperRegistry mapperRegistry, java.util.function.Supplier<QueryShardContext> queryShardContextSupplier)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static void
checkNoRemainingFields(java.lang.String fieldName, java.util.Map<?,?> fieldNodeMap, Version indexVersionCreated)
static void
checkNoRemainingFields(java.util.Map<?,?> fieldNodeMap, Version indexVersionCreated, java.lang.String message)
DocumentMapper
parse(java.lang.String type, CompressedXContent source)
DocumentMapper
parse(java.lang.String type, CompressedXContent source, java.lang.String defaultSource)
Mapper.TypeParser.ParserContext
parserContext(java.lang.String type)
-
-
-
Constructor Detail
-
DocumentMapperParser
public DocumentMapperParser(IndexSettings indexSettings, MapperService mapperService, IndexAnalyzers indexAnalyzers, NamedXContentRegistry xContentRegistry, SimilarityService similarityService, MapperRegistry mapperRegistry, java.util.function.Supplier<QueryShardContext> queryShardContextSupplier)
-
-
Method Detail
-
parserContext
public Mapper.TypeParser.ParserContext parserContext(java.lang.String type)
-
parse
public DocumentMapper parse(@Nullable java.lang.String type, CompressedXContent source) throws MapperParsingException
- Throws:
MapperParsingException
-
parse
public DocumentMapper parse(@Nullable java.lang.String type, CompressedXContent source, java.lang.String defaultSource) throws MapperParsingException
- Throws:
MapperParsingException
-
checkNoRemainingFields
public static void checkNoRemainingFields(java.lang.String fieldName, java.util.Map<?,?> fieldNodeMap, Version indexVersionCreated)
-
checkNoRemainingFields
public static void checkNoRemainingFields(java.util.Map<?,?> fieldNodeMap, Version indexVersionCreated, java.lang.String message)
-
-