org.elasticsearch.index.mapper
Interface DocumentMapperParser

All Known Implementing Classes:
XContentDocumentMapperParser

public interface DocumentMapperParser


Method Summary
 DocumentMapper parse(java.lang.String mappingSource)
          Parses the source mapping definition into a document mapper.
 DocumentMapper parse(java.lang.String type, java.lang.String mappingSource)
          Parses the source mapping definition into a document mapper with the specified type (overriding the one defined in the source mapping).
 DocumentMapper parse(java.lang.String type, java.lang.String mappingSource, java.lang.String defaultMappingSource)
          Parses the source mapping definition into a document mapper with the specified type (overriding the one defined in the source mapping).
 

Method Detail

parse

DocumentMapper parse(java.lang.String mappingSource)
                     throws MapperParsingException
Parses the source mapping definition into a document mapper.

Throws:
MapperParsingException

parse

DocumentMapper parse(@Nullable
                     java.lang.String type,
                     java.lang.String mappingSource)
                     throws MapperParsingException
Parses the source mapping definition into a document mapper with the specified type (overriding the one defined in the source mapping).

Throws:
MapperParsingException

parse

DocumentMapper parse(@Nullable
                     java.lang.String type,
                     java.lang.String mappingSource,
                     java.lang.String defaultMappingSource)
                     throws MapperParsingException
Parses the source mapping definition into a document mapper with the specified type (overriding the one defined in the source mapping).

Throws:
MapperParsingException