public class SourceFieldMapper extends AbstractFieldMapper<byte[]> implements InternalMapper, RootMapper
Modifier and Type | Class and Description |
---|---|
static class |
SourceFieldMapper.Builder |
static class |
SourceFieldMapper.Defaults |
static class |
SourceFieldMapper.TypeParser |
AbstractFieldMapper.CopyTo, AbstractFieldMapper.MultiFields
Mapper.BuilderContext
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
FieldMapper.Loading, FieldMapper.Names
Modifier and Type | Field and Description |
---|---|
static String |
CONTENT_TYPE |
static String |
NAME |
boost, copyTo, customFieldDataSettings, docValues, docValuesFormat, fieldDataType, fieldType, indexAnalyzer, multiFields, names, normsLoading, postingsFormat, searchAnalyzer, similarity
EMPTY_ARRAY
EMPTY_PARAMS
DOC_VALUES_FORMAT
Modifier | Constructor and Description |
---|---|
|
SourceFieldMapper(Settings indexSettings) |
protected |
SourceFieldMapper(String name,
boolean enabled,
String format,
Boolean compress,
long compressThreshold,
String[] includes,
String[] excludes,
Settings indexSettings) |
Modifier and Type | Method and Description |
---|---|
protected String |
contentType() |
FieldDataType |
defaultFieldDataType() |
org.apache.lucene.document.FieldType |
defaultFieldType() |
boolean |
enabled() |
String[] |
excludes() |
boolean |
hasDocValues() |
boolean |
includeInObject()
Should the mapper be included in the root
ObjectMapper . |
String[] |
includes() |
void |
merge(Mapper mergeWith,
MergeContext mergeContext) |
void |
parse(ParseContext context) |
protected void |
parseCreateField(ParseContext context,
List<org.apache.lucene.document.Field> fields)
Parse the field value and populate
fields . |
void |
postParse(ParseContext context)
Called after
Mapper.parse(ParseContext) on the RootObjectMapper . |
void |
preParse(ParseContext context)
Called before
Mapper.parse(ParseContext) on the RootObjectMapper . |
XContentBuilder |
toXContent(XContentBuilder builder,
ToXContent.Params params) |
byte[] |
value(Object value)
Returns the actual value of the field.
|
boost, close, copyTo, customBoost, defaultDocValuesFormat, defaultPostingFormat, docValuesFormatProvider, doXContentBody, fieldDataTermsFilter, fieldDataType, fieldType, fuzzyQuery, indexAnalyzer, indexedValueForSearch, indexOptionToString, indexTokenizeOptionToString, isGenerated, isNumeric, isSortable, name, names, normsLoading, nullValueFilter, postingsFormatProvider, prefixFilter, prefixQuery, queryStringTermQuery, rangeFilter, rangeQuery, regexpFilter, regexpQuery, searchAnalyzer, searchQuoteAnalyzer, similarity, supportsNullValue, termFilter, termQuery, termsFilter, termVectorOptionsToString, traverse, traverse, useTermQueryWithQueryString, valueForSearch
public static final String NAME
public static final String CONTENT_TYPE
public SourceFieldMapper(Settings indexSettings)
public boolean enabled()
public String[] excludes()
public String[] includes()
public org.apache.lucene.document.FieldType defaultFieldType()
defaultFieldType
in class AbstractFieldMapper<byte[]>
public FieldDataType defaultFieldDataType()
defaultFieldDataType
in class AbstractFieldMapper<byte[]>
public boolean hasDocValues()
hasDocValues
in interface FieldMapper<byte[]>
hasDocValues
in class AbstractFieldMapper<byte[]>
public void preParse(ParseContext context) throws IOException
RootMapper
Mapper.parse(ParseContext)
on the RootObjectMapper
.preParse
in interface RootMapper
IOException
public void postParse(ParseContext context) throws IOException
RootMapper
Mapper.parse(ParseContext)
on the RootObjectMapper
.postParse
in interface RootMapper
IOException
public void parse(ParseContext context) throws IOException
parse
in interface Mapper
parse
in class AbstractFieldMapper<byte[]>
IOException
public boolean includeInObject()
RootMapper
ObjectMapper
.
If this method returns true, then Mapper.parse(ParseContext)
will be
called if the context has a property that matches the name of this
RootMapper
. Otherwise Mapper.parse(ParseContext)
will not
be called.includeInObject
in interface RootMapper
protected void parseCreateField(ParseContext context, List<org.apache.lucene.document.Field> fields) throws IOException
AbstractFieldMapper
fields
.parseCreateField
in class AbstractFieldMapper<byte[]>
IOException
public byte[] value(Object value)
FieldMapper
value
in interface FieldMapper<byte[]>
protected String contentType()
contentType
in class AbstractFieldMapper<byte[]>
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws IOException
toXContent
in interface ToXContent
toXContent
in class AbstractFieldMapper<byte[]>
IOException
public void merge(Mapper mergeWith, MergeContext mergeContext) throws MergeMappingException
merge
in interface Mapper
merge
in class AbstractFieldMapper<byte[]>
MergeMappingException
Copyright © 2009–2015. All rights reserved.