org.elasticsearch.index.mapper
Class DocumentFieldMappers
java.lang.Object
org.elasticsearch.index.mapper.DocumentFieldMappers
- All Implemented Interfaces:
- java.lang.Iterable<FieldMapper>
@Immutable
public class DocumentFieldMappers
- extends java.lang.Object
- implements java.lang.Iterable<FieldMapper>
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DocumentFieldMappers
public DocumentFieldMappers(DocumentMapper docMapper,
java.lang.Iterable<FieldMapper> fieldMappers)
iterator
public org.elasticsearch.common.collect.UnmodifiableIterator<FieldMapper> iterator()
- Specified by:
iterator
in interface java.lang.Iterable<FieldMapper>
mappers
public org.elasticsearch.common.collect.ImmutableList<FieldMapper> mappers()
hasMapper
public boolean hasMapper(FieldMapper fieldMapper)
name
public FieldMappers name(java.lang.String name)
indexName
public FieldMappers indexName(java.lang.String indexName)
fullName
public FieldMappers fullName(java.lang.String fullName)
smartName
public FieldMappers smartName(java.lang.String name)
- Tries to find first based on
fullName(String)
, then by indexName(String)
, and last
by name(String)
.
smartNameFieldMapper
public FieldMapper smartNameFieldMapper(java.lang.String name)
indexAnalyzer
public org.apache.lucene.analysis.Analyzer indexAnalyzer()
- A smart analyzer used for indexing that takes into account specific analyzers configured
per
FieldMapper
.
searchAnalyzer
public org.apache.lucene.analysis.Analyzer searchAnalyzer()
- A smart analyzer used for searching that takes into account specific analyzers configured
per
FieldMapper
.
concat
public DocumentFieldMappers concat(DocumentMapper docMapper,
FieldMapper... fieldMappers)
concat
public DocumentFieldMappers concat(DocumentMapper docMapper,
java.lang.Iterable<FieldMapper> fieldMappers)