public final class KeywordFieldMapper extends FieldMapper implements AllFieldMapper.IncludeInAll
Modifier and Type | Class and Description |
---|---|
static class |
KeywordFieldMapper.Builder |
static class |
KeywordFieldMapper.Defaults |
static class |
KeywordFieldMapper.KeywordFieldType |
static class |
KeywordFieldMapper.TypeParser |
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 |
KeywordFieldMapper(java.lang.String simpleName,
MappedFieldType fieldType,
MappedFieldType defaultFieldType,
int ignoreAbove,
Settings indexSettings,
FieldMapper.MultiFields multiFields,
FieldMapper.CopyTo copyTo) |
Modifier and Type | Method and Description |
---|---|
protected KeywordFieldMapper |
clone() |
protected java.lang.String |
contentType() |
protected void |
doMerge(Mapper mergeWith,
boolean updateAllTypes)
Merge changes coming from
mergeWith in place. |
protected void |
doXContentBody(XContentBuilder builder,
boolean includeDefaults,
ToXContent.Params params) |
KeywordFieldMapper |
includeInAll(java.lang.Boolean includeInAll)
If
includeInAll is not null then return a copy of this mapper
that will include values in the _all field according to includeInAll . |
KeywordFieldMapper |
includeInAllIfNotSet(java.lang.Boolean includeInAll)
If
includeInAll is not null and not set on this mapper yet, then
return a copy of this mapper that will include values in the _all field
according to includeInAll . |
protected void |
parseCreateField(ParseContext context,
java.util.List<org.apache.lucene.document.Field> fields)
Parse the field value and populate
fields . |
KeywordFieldMapper |
unsetIncludeInAll()
If
includeInAll was already set on this mapper then return a copy
of this mapper that has includeInAll not set. |
copyTo, customBoost, doXContentAnalyzers, doXContentDocValues, fieldType, indexOptionToString, indexTokenizeOption, isGenerated, iterator, merge, name, parse, termVectorOptionsToString, toXContent, updateFieldType
simpleName
public static final java.lang.String CONTENT_TYPE
protected KeywordFieldMapper(java.lang.String simpleName, MappedFieldType fieldType, MappedFieldType defaultFieldType, int ignoreAbove, Settings indexSettings, FieldMapper.MultiFields multiFields, FieldMapper.CopyTo copyTo)
protected KeywordFieldMapper clone()
clone
in class FieldMapper
public KeywordFieldMapper includeInAll(java.lang.Boolean includeInAll)
AllFieldMapper.IncludeInAll
includeInAll
is not null then return a copy of this mapper
that will include values in the _all field according to includeInAll
.includeInAll
in interface AllFieldMapper.IncludeInAll
public KeywordFieldMapper includeInAllIfNotSet(java.lang.Boolean includeInAll)
AllFieldMapper.IncludeInAll
includeInAll
is not null and not set on this mapper yet, then
return a copy of this mapper that will include values in the _all field
according to includeInAll
.includeInAllIfNotSet
in interface AllFieldMapper.IncludeInAll
public KeywordFieldMapper unsetIncludeInAll()
AllFieldMapper.IncludeInAll
includeInAll
was already set on this mapper then return a copy
of this mapper that has includeInAll
not set.unsetIncludeInAll
in interface AllFieldMapper.IncludeInAll
protected void parseCreateField(ParseContext context, java.util.List<org.apache.lucene.document.Field> fields) throws java.io.IOException
FieldMapper
fields
.parseCreateField
in class FieldMapper
java.io.IOException
protected 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 void doXContentBody(XContentBuilder builder, boolean includeDefaults, ToXContent.Params params) throws java.io.IOException
doXContentBody
in class FieldMapper
java.io.IOException