Class PreAnalyzedMapper.TypeParser

  • All Implemented Interfaces:
    org.elasticsearch.index.mapper.Mapper.TypeParser
    Enclosing class:
    PreAnalyzedMapper

    public static class PreAnalyzedMapper.TypeParser
    extends Object
    implements org.elasticsearch.index.mapper.Mapper.TypeParser
    Parses the mapping of a preanalyzed field, e.g.
     "properties" : {
         "text" : {
             "type" : "preanalyzed",
             "search_analyzer" : "standard",
             "store" : true
         }
      }
     
    Since the preanalyzed field type does not define any properties of its own, parsing the mapping is completely default parsing by TypeParsers.parseField(org.elasticsearch.index.mapper.FieldMapper.Builder, String, Map, org.elasticsearch.index.mapper.Mapper.TypeParser.ParserContext) .
    Author:
    faessler
    • Constructor Detail

      • TypeParser

        public TypeParser()
    • Method Detail

      • parse

        public org.elasticsearch.index.mapper.Mapper.Builder parse​(String name,
                                                                   Map<String,​Object> node,
                                                                   org.elasticsearch.index.mapper.Mapper.TypeParser.ParserContext parserContext)
                                                            throws org.elasticsearch.index.mapper.MapperParsingException
        Specified by:
        parse in interface org.elasticsearch.index.mapper.Mapper.TypeParser
        Throws:
        org.elasticsearch.index.mapper.MapperParsingException