public static interface MetadataFieldMapper.TypeParser extends Mapper.TypeParser
Mapper.TypeParser.ParserContext
Modifier and Type | Method and Description |
---|---|
MetadataFieldMapper |
getDefault(MappedFieldType fieldType,
Mapper.TypeParser.ParserContext parserContext)
Get the default
MetadataFieldMapper to use, if nothing had to be parsed. |
MetadataFieldMapper.Builder<?,?> |
parse(java.lang.String name,
java.util.Map<java.lang.String,java.lang.Object> node,
Mapper.TypeParser.ParserContext parserContext) |
MetadataFieldMapper.Builder<?,?> parse(java.lang.String name, java.util.Map<java.lang.String,java.lang.Object> node, Mapper.TypeParser.ParserContext parserContext) throws MapperParsingException
parse
in interface Mapper.TypeParser
MapperParsingException
MetadataFieldMapper getDefault(MappedFieldType fieldType, Mapper.TypeParser.ParserContext parserContext)
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 otherwisefieldType
- the existing field type for this meta mapper on the current index
or null if this is the first type being introducedparserContext
- context that may be useful to build the field like analyzers