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, nodeNamepublic 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
MapperParsingExceptionpublic DocumentMapper parse(@Nullable String type, String source) throws MapperParsingException
MapperParsingExceptionpublic DocumentMapper parse(@Nullable String type, String source, String defaultSource) throws MapperParsingException
MapperParsingExceptionpublic DocumentMapper parseCompressed(@Nullable String type, CompressedString source) throws MapperParsingException
MapperParsingExceptionpublic DocumentMapper parseCompressed(@Nullable String type, CompressedString source, String defaultSource) throws MapperParsingException
MapperParsingExceptionCopyright © 2009–2016. All rights reserved.