public class StringFieldMapper extends FieldMapper
Modifier and Type | Class and Description |
---|---|
static class |
StringFieldMapper.Builder |
static class |
StringFieldMapper.Defaults |
static class |
StringFieldMapper.StringFieldType |
static class |
StringFieldMapper.TypeParser |
static class |
StringFieldMapper.ValueAndBoost
Parsed value and boost to be returned from
parseCreateFieldForString(org.elasticsearch.index.mapper.ParseContext, java.lang.String, float) . |
FieldMapper.CopyTo, FieldMapper.MultiFields
Mapper.BuilderContext
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CONTENT_TYPE |
COERCE_SETTING, copyTo, defaultFieldType, fieldType, IGNORE_MALFORMED_SETTING, multiFields
EMPTY_PARAMS
Modifier | Constructor and Description |
---|---|
protected |
StringFieldMapper(java.lang.String simpleName,
StringFieldMapper.StringFieldType fieldType,
MappedFieldType defaultFieldType,
int positionIncrementGap,
int ignoreAbove,
java.lang.Boolean includeInAll,
Settings indexSettings,
FieldMapper.MultiFields multiFields,
FieldMapper.CopyTo copyTo) |
Modifier and Type | Method and Description |
---|---|
protected StringFieldMapper |
clone() |
protected java.lang.String |
contentType() |
protected boolean |
customBoost()
Derived classes can override it to specify that boost value is set by derived classes.
|
protected void |
doMerge(Mapper mergeWith,
boolean updateAllTypes)
Merge changes coming from
mergeWith in place. |
protected void |
doXContentBody(XContentBuilder builder,
boolean includeDefaults,
ToXContent.Params params) |
StringFieldMapper.StringFieldType |
fieldType() |
int |
getIgnoreAbove() |
int |
getPositionIncrementGap() |
protected java.lang.String |
indexTokenizeOption(boolean indexed,
boolean tokenized) |
protected void |
parseCreateField(ParseContext context,
java.util.List<org.apache.lucene.index.IndexableField> fields)
Parse the field value and populate
fields . |
static StringFieldMapper.ValueAndBoost |
parseCreateFieldForString(ParseContext context,
java.lang.String nullValue,
float defaultBoost)
Parse a field as though it were a string.
|
copyTo, doXContentAnalyzers, doXContentDocValues, indexOptionToString, iterator, merge, name, parse, termVectorOptionsToString, toXContent, updateFieldType
simpleName
public static final java.lang.String CONTENT_TYPE
protected StringFieldMapper(java.lang.String simpleName, StringFieldMapper.StringFieldType fieldType, MappedFieldType defaultFieldType, int positionIncrementGap, int ignoreAbove, java.lang.Boolean includeInAll, Settings indexSettings, FieldMapper.MultiFields multiFields, FieldMapper.CopyTo copyTo)
protected StringFieldMapper clone()
clone
in class FieldMapper
protected boolean customBoost()
FieldMapper
customBoost
in class FieldMapper
public int getPositionIncrementGap()
public int getIgnoreAbove()
protected void parseCreateField(ParseContext context, java.util.List<org.apache.lucene.index.IndexableField> fields) throws java.io.IOException
FieldMapper
fields
.parseCreateField
in class FieldMapper
java.io.IOException
public static StringFieldMapper.ValueAndBoost parseCreateFieldForString(ParseContext context, java.lang.String nullValue, float defaultBoost) throws java.io.IOException
context
- parse context used during parsingnullValue
- value to use for nulldefaultBoost
- default boost value returned unless overwritten in the fieldjava.io.IOException
- if thrown while parsingprotected java.lang.String contentType()
contentType
in class FieldMapper
protected void doMerge(Mapper mergeWith, boolean updateAllTypes)
FieldMapper
mergeWith
in place.doMerge
in class FieldMapper
updateAllTypes
- TODOprotected java.lang.String indexTokenizeOption(boolean indexed, boolean tokenized)
indexTokenizeOption
in class FieldMapper
public StringFieldMapper.StringFieldType fieldType()
fieldType
in class FieldMapper
protected void doXContentBody(XContentBuilder builder, boolean includeDefaults, ToXContent.Params params) throws java.io.IOException
doXContentBody
in class FieldMapper
java.io.IOException