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.MultiFieldsMapper.BuilderContextToXContent.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, multiFieldsEMPTY_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, updateFieldTypesimpleNamepublic 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 FieldMapperprotected boolean customBoost()
FieldMappercustomBoost in class FieldMapperpublic int getPositionIncrementGap()
public int getIgnoreAbove()
protected void parseCreateField(ParseContext context, java.util.List<org.apache.lucene.index.IndexableField> fields) throws java.io.IOException
FieldMapperfields.parseCreateField in class FieldMapperjava.io.IOExceptionpublic 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 FieldMapperprotected void doMerge(Mapper mergeWith, boolean updateAllTypes)
FieldMappermergeWith in place.doMerge in class FieldMapperupdateAllTypes - TODOprotected java.lang.String indexTokenizeOption(boolean indexed,
boolean tokenized)
indexTokenizeOption in class FieldMapperpublic StringFieldMapper.StringFieldType fieldType()
fieldType in class FieldMapperprotected void doXContentBody(XContentBuilder builder, boolean includeDefaults, ToXContent.Params params) throws java.io.IOException
doXContentBody in class FieldMapperjava.io.IOException