public class LegacyTokenCountFieldMapper extends LegacyIntegerFieldMapper
FieldMapper that takes a string and writes a count of the tokens in that string
to the index. In most ways the mapper acts just like an LegacyIntegerFieldMapper.| Modifier and Type | Class and Description |
|---|---|
static class |
LegacyTokenCountFieldMapper.Builder |
static class |
LegacyTokenCountFieldMapper.Defaults |
static class |
LegacyTokenCountFieldMapper.TypeParser |
LegacyIntegerFieldMapper.CustomIntegerNumericField, LegacyIntegerFieldMapper.IntegerFieldTypeLegacyNumberFieldMapper.CustomNumericField, LegacyNumberFieldMapper.NumberFieldTypeFieldMapper.CopyTo, FieldMapper.MultiFieldsMapper.BuilderContextToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
CONTENT_TYPE |
coerce, ignoreMalformed, includeInAllcopyTo, defaultFieldType, fieldType, IGNORE_MALFORMED_SETTING, multiFieldsEMPTY_PARAMS| Modifier | Constructor and Description |
|---|---|
protected |
LegacyTokenCountFieldMapper(java.lang.String simpleName,
MappedFieldType fieldType,
MappedFieldType defaultFieldType,
Explicit<java.lang.Boolean> ignoreMalformed,
Explicit<java.lang.Boolean> coerce,
java.lang.Boolean includeInAll,
Settings indexSettings,
NamedAnalyzer analyzer,
FieldMapper.MultiFields multiFields,
FieldMapper.CopyTo copyTo) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
analyzer()
Name of analyzer.
|
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) |
protected void |
parseCreateField(ParseContext context,
java.util.List<org.apache.lucene.index.IndexableField> fields)
Parse the field value and populate
fields. |
addIntegerFields, customBoost, fieldType, innerParseCreateFieldaddDocValue, clone, parseDoubleValue, parseLongValuecopyTo, doXContentAnalyzers, doXContentDocValues, indexOptionToString, indexTokenizeOption, iterator, merge, name, parse, termVectorOptionsToString, toXContent, updateFieldTypesimpleNameequals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisFragmentpublic static final java.lang.String CONTENT_TYPE
protected LegacyTokenCountFieldMapper(java.lang.String simpleName,
MappedFieldType fieldType,
MappedFieldType defaultFieldType,
Explicit<java.lang.Boolean> ignoreMalformed,
Explicit<java.lang.Boolean> coerce,
java.lang.Boolean includeInAll,
Settings indexSettings,
NamedAnalyzer analyzer,
FieldMapper.MultiFields multiFields,
FieldMapper.CopyTo copyTo)
protected void parseCreateField(ParseContext context, java.util.List<org.apache.lucene.index.IndexableField> fields) throws java.io.IOException
FieldMapperfields.parseCreateField in class LegacyNumberFieldMapperjava.io.IOExceptionpublic java.lang.String analyzer()
protected java.lang.String contentType()
contentType in class LegacyIntegerFieldMapperprotected void doMerge(Mapper mergeWith, boolean updateAllTypes)
FieldMappermergeWith in place.doMerge in class LegacyNumberFieldMapperupdateAllTypes - TODOprotected void doXContentBody(XContentBuilder builder, boolean includeDefaults, ToXContent.Params params) throws java.io.IOException
doXContentBody in class LegacyIntegerFieldMapperjava.io.IOException