org.elasticsearch.index.mapper
Interface SourceFieldMapper
- All Superinterfaces:
- FieldMapper<byte[]>, InternalMapper
- All Known Implementing Classes:
- SourceFieldMapper
@ThreadSafe
public interface SourceFieldMapper
- extends FieldMapper<byte[]>, InternalMapper
A mapper that maps the actual source of a generated document.
Field Summary |
static java.lang.String |
NAME
|
Method Summary |
boolean |
enabled()
Returns true if the source field mapper is enabled or not. |
org.apache.lucene.document.FieldSelector |
fieldSelector()
A field selector that loads just the source field. |
byte[] |
nativeValue(org.apache.lucene.document.Fieldable field)
Returns the native source value, if its compressed, then the compressed value is returned. |
byte[] |
value(org.apache.lucene.document.Document document)
|
Methods inherited from interface org.elasticsearch.index.mapper.FieldMapper |
analyzed, boost, fieldDataType, fieldFilter, fieldQuery, fuzzyQuery, fuzzyQuery, index, indexAnalyzer, indexed, indexedValue, names, omitNorms, omitTermFreqAndPositions, queryStringTermQuery, rangeFilter, rangeQuery, searchAnalyzer, store, stored, termVector, useFieldQueryWithQueryString, value, valueAsString, valueForSearch, valueFromString |
NAME
static final java.lang.String NAME
- See Also:
- Constant Field Values
enabled
boolean enabled()
- Returns true if the source field mapper is enabled or not.
nativeValue
byte[] nativeValue(org.apache.lucene.document.Fieldable field)
- Returns the native source value, if its compressed, then the compressed value is returned.
value
byte[] value(org.apache.lucene.document.Document document)
fieldSelector
org.apache.lucene.document.FieldSelector fieldSelector()
- A field selector that loads just the source field.