public static class ParentFieldMapper.TypeParser extends Object implements MetadataFieldMapper.TypeParser
Mapper.TypeParser.ParserContext
Constructor and Description |
---|
ParentFieldMapper.TypeParser() |
Modifier and Type | Method and Description |
---|---|
MetadataFieldMapper |
getDefault(Settings indexSettings,
MappedFieldType fieldType,
String parentType)
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) |
public MetadataFieldMapper.Builder parse(String name, Map<String,Object> node, Mapper.TypeParser.ParserContext parserContext) throws MapperParsingException
parse
in interface Mapper.TypeParser
parse
in interface MetadataFieldMapper.TypeParser
MapperParsingException
public MetadataFieldMapper getDefault(Settings indexSettings, MappedFieldType fieldType, String parentType)
MetadataFieldMapper.TypeParser
MetadataFieldMapper
to use, if nothing had to be parsed.getDefault
in interface MetadataFieldMapper.TypeParser
indexSettings
- the index-level settingsfieldType
- null if this is the first root mapper on this index, the existing
fieldType for this index otherwiseparentType
- the name of the type that this mapper will be used onCopyright © 2009–2017. All rights reserved.