public static interface MetadataFieldMapper.TypeParser extends Mapper.TypeParser
Mapper.TypeParser.ParserContext| Modifier and Type | Method and Description |
|---|---|
MetadataFieldMapper |
getDefault(Settings indexSettings,
MappedFieldType fieldType,
String typeName)
Get the default
MetadataFieldMapper to use, if nothing had to be parsed. |
MetadataFieldMapper.Builder<?,?> |
parse(String name,
Map<String,Object> node,
Mapper.TypeParser.ParserContext parserContext) |
MetadataFieldMapper.Builder<?,?> parse(String name, Map<String,Object> node, Mapper.TypeParser.ParserContext parserContext) throws MapperParsingException
parse in interface Mapper.TypeParserMapperParsingExceptionMetadataFieldMapper getDefault(Settings indexSettings, MappedFieldType fieldType, String typeName)
MetadataFieldMapper to use, if nothing had to be parsed.fieldType - null if this is the first root mapper on this index, the existing
fieldType for this index otherwiseindexSettings - the index-level settingsfieldType - the existing field type for this meta mapper on the current index
or null if this is the first type being introducedtypeName - the name of the type that this mapper will be used onCopyright © 2009–2017. All rights reserved.