public class DocumentMapperParser extends AbstractIndexComponent
componentSettings, index, indexSettings, logger
Constructor and Description |
---|
DocumentMapperParser(Index index,
Settings indexSettings,
AnalysisService analysisService,
PostingsFormatService postingsFormatService,
DocValuesFormatService docValuesFormatService,
SimilarityLookupService similarityLookupService,
ScriptService scriptService) |
Modifier and Type | Method and Description |
---|---|
DocumentMapper |
parse(String source) |
DocumentMapper |
parse(String type,
String source) |
DocumentMapper |
parse(String type,
String source,
String defaultSource) |
DocumentMapper |
parseCompressed(String type,
CompressedString source) |
DocumentMapper |
parseCompressed(String type,
CompressedString source,
String defaultSource) |
Mapper.TypeParser.ParserContext |
parserContext() |
void |
putRootTypeParser(String type,
Mapper.TypeParser typeParser) |
void |
putTypeParser(String type,
Mapper.TypeParser typeParser) |
index, nodeName
public DocumentMapperParser(Index index, @IndexSettings Settings indexSettings, AnalysisService analysisService, PostingsFormatService postingsFormatService, DocValuesFormatService docValuesFormatService, SimilarityLookupService similarityLookupService, ScriptService scriptService)
public void putTypeParser(String type, Mapper.TypeParser typeParser)
public void putRootTypeParser(String type, Mapper.TypeParser typeParser)
public Mapper.TypeParser.ParserContext parserContext()
public DocumentMapper parse(String source) throws MapperParsingException
MapperParsingException
public DocumentMapper parse(@Nullable String type, String source) throws MapperParsingException
MapperParsingException
public DocumentMapper parse(@Nullable String type, String source, String defaultSource) throws MapperParsingException
MapperParsingException
public DocumentMapper parseCompressed(@Nullable String type, CompressedString source) throws MapperParsingException
MapperParsingException
public DocumentMapper parseCompressed(@Nullable String type, CompressedString source, String defaultSource) throws MapperParsingException
MapperParsingException
Copyright © 2009–2015. All rights reserved.