public static class IndexFieldMapper.TypeParser extends java.lang.Object implements MetadataFieldMapper.TypeParser
Mapper.TypeParser.ParserContext
Constructor and Description |
---|
TypeParser() |
Modifier and Type | Method and Description |
---|---|
MetadataFieldMapper |
getDefault(MappedFieldType fieldType,
Mapper.TypeParser.ParserContext context)
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) |
public 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
parse
in interface MetadataFieldMapper.TypeParser
MapperParsingException
public MetadataFieldMapper getDefault(MappedFieldType fieldType, Mapper.TypeParser.ParserContext context)
MetadataFieldMapper.TypeParser
MetadataFieldMapper
to use, if nothing had to be parsed.getDefault
in interface MetadataFieldMapper.TypeParser
fieldType
- null if this is the first root mapper on this index, the existing
fieldType for this index otherwisecontext
- context that may be useful to build the field like analyzers