org.elasticsearch.index.mapper
Class DocumentMapperParser

java.lang.Object
  extended by org.elasticsearch.index.AbstractIndexComponent
      extended by org.elasticsearch.index.mapper.DocumentMapperParser
All Implemented Interfaces:
IndexComponent

public class DocumentMapperParser
extends AbstractIndexComponent


Field Summary
 
Fields inherited from class org.elasticsearch.index.AbstractIndexComponent
componentSettings, index, indexSettings, logger
 
Constructor Summary
DocumentMapperParser(Index index, AnalysisService analysisService)
           
DocumentMapperParser(Index index, Settings indexSettings, AnalysisService analysisService)
           
 
Method Summary
 DocumentMapper parse(String source)
           
 DocumentMapper parse(String type, String source)
           
 DocumentMapper parse(String type, String source, String defaultSource)
           
 Mapper.TypeParser.ParserContext parserContext()
           
 void putRootTypeParser(String type, Mapper.TypeParser typeParser)
           
 void putTypeParser(String type, Mapper.TypeParser typeParser)
           
 
Methods inherited from class org.elasticsearch.index.AbstractIndexComponent
index, nodeName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DocumentMapperParser

public DocumentMapperParser(Index index,
                            AnalysisService analysisService)

DocumentMapperParser

public DocumentMapperParser(Index index,
                            @IndexSettings
                            Settings indexSettings,
                            AnalysisService analysisService)
Method Detail

putTypeParser

public void putTypeParser(String type,
                          Mapper.TypeParser typeParser)

putRootTypeParser

public void putRootTypeParser(String type,
                              Mapper.TypeParser typeParser)

parserContext

public Mapper.TypeParser.ParserContext parserContext()

parse

public DocumentMapper parse(String source)
                     throws MapperParsingException
Throws:
MapperParsingException

parse

public DocumentMapper parse(@Nullable
                            String type,
                            String source)
                     throws MapperParsingException
Throws:
MapperParsingException

parse

public DocumentMapper parse(@Nullable
                            String type,
                            String source,
                            String defaultSource)
                     throws MapperParsingException
Throws:
MapperParsingException


Copyright © 2009-2012. All Rights Reserved.