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, org.elasticsearch.common.xcontent.NamedXContentRegistry xContentRegistry, SimilarityService similarityService, MapperRegistry mapperRegistry, java.util.function.Supplier<QueryShardContext> queryShardContextSupplier)
-
Method Summary
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()
-
Constructor Details
-
DocumentMapperParser
public DocumentMapperParser(IndexSettings indexSettings, MapperService mapperService, org.elasticsearch.common.xcontent.NamedXContentRegistry xContentRegistry, SimilarityService similarityService, MapperRegistry mapperRegistry, java.util.function.Supplier<QueryShardContext> queryShardContextSupplier)
-
-
Method Details
-
parserContext
-
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)
-