|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
@ThreadSafe public interface DocumentMapper
Nested Class Summary | |
---|---|
static class |
DocumentMapper.MergeFlags
|
static class |
DocumentMapper.MergeResult
A result of a merge. |
static interface |
DocumentMapper.ParseListener<ParseContext>
A listener to be called during the parse process. |
static class |
DocumentMapper.ParseListenerAdapter
|
Method Summary | |
---|---|
void |
addFieldMapperListener(FieldMapperListener fieldMapperListener,
boolean includeExisting)
Adds a field mapper listener. |
AllFieldMapper |
allFieldMapper()
|
BoostFieldMapper |
boostMapper()
|
IdFieldMapper |
idMapper()
|
org.apache.lucene.analysis.Analyzer |
indexAnalyzer()
The default index analyzer to be used. |
IndexFieldMapper |
indexMapper()
|
DocumentFieldMappers |
mappers()
|
CompressedString |
mappingSource()
When constructed by parsing a mapping definition, will return it. |
DocumentMapper.MergeResult |
merge(DocumentMapper mergeWith,
DocumentMapper.MergeFlags mergeFlags)
Merges this document mapper with the provided document mapper. |
org.elasticsearch.common.collect.ImmutableMap<java.lang.String,java.lang.Object> |
meta()
Attributes of this type mappings. |
ParentFieldMapper |
parentFieldMapper()
|
ParsedDocument |
parse(byte[] source)
Parses the source into a parsed document. |
ParsedDocument |
parse(SourceToParse source)
Parses the source into a parsed document. |
ParsedDocument |
parse(SourceToParse source,
DocumentMapper.ParseListener listener)
Parses the source into a parsed document. |
ParsedDocument |
parse(java.lang.String type,
java.lang.String id,
byte[] source)
Parses the source into a parsed document. |
void |
refreshSource()
Generates the source of the mapper based on the current mappings. |
RoutingFieldMapper |
routingFieldMapper()
|
org.apache.lucene.analysis.Analyzer |
searchAnalyzer()
The default search analyzer to be used. |
SourceFieldMapper |
sourceMapper()
|
java.lang.String |
type()
|
org.apache.lucene.search.Filter |
typeFilter()
A filter based on the type of the field. |
TypeFieldMapper |
typeMapper()
|
UidFieldMapper |
uidMapper()
|
Method Detail |
---|
java.lang.String type()
CompressedString mappingSource()
org.elasticsearch.common.collect.ImmutableMap<java.lang.String,java.lang.Object> meta()
void refreshSource() throws FailedToGenerateSourceMapperException
FailedToGenerateSourceMapperException
UidFieldMapper uidMapper()
IdFieldMapper idMapper()
TypeFieldMapper typeMapper()
IndexFieldMapper indexMapper()
SourceFieldMapper sourceMapper()
BoostFieldMapper boostMapper()
AllFieldMapper allFieldMapper()
RoutingFieldMapper routingFieldMapper()
ParentFieldMapper parentFieldMapper()
DocumentFieldMappers mappers()
org.apache.lucene.analysis.Analyzer indexAnalyzer()
DocumentFieldMappers.indexAnalyzer()
should
probably be used instead.
org.apache.lucene.analysis.Analyzer searchAnalyzer()
DocumentFieldMappers.searchAnalyzer()
should
probably be used instead.
org.apache.lucene.search.Filter typeFilter()
ParsedDocument parse(byte[] source) throws MapperParsingException
Validates that the source has the provided id and type. Note, most times we will already have the id and the type even though they exist in the source as well.
MapperParsingException
ParsedDocument parse(java.lang.String type, java.lang.String id, byte[] source) throws MapperParsingException
Validates that the source has the provided id and type. Note, most times we will already have the id and the type even though they exist in the source as well.
MapperParsingException
ParsedDocument parse(SourceToParse source) throws MapperParsingException
Validates that the source has the provided id and type. Note, most times we will already have the id and the type even though they exist in the source as well.
MapperParsingException
ParsedDocument parse(SourceToParse source, @Nullable DocumentMapper.ParseListener listener) throws MapperParsingException
Validates that the source has the provided id and type. Note, most times we will already have the id and the type even though they exist in the source as well.
MapperParsingException
DocumentMapper.MergeResult merge(DocumentMapper mergeWith, DocumentMapper.MergeFlags mergeFlags) throws MergeMappingException
DocumentMapper.MergeResult
will hold them.
MergeMappingException
void addFieldMapperListener(FieldMapperListener fieldMapperListener, boolean includeExisting)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |