public class TokenCountFieldMapper extends IntegerFieldMapper
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 IntegerFieldMapper.| 修飾子とタイプ | クラスと説明 |
|---|---|
static class |
TokenCountFieldMapper.Builder |
static class |
TokenCountFieldMapper.Defaults |
static class |
TokenCountFieldMapper.TypeParser |
IntegerFieldMapper.CustomIntegerNumericField, IntegerFieldMapper.IntegerFieldTypeNumberFieldMapper.CustomLongNumericDocValuesField, NumberFieldMapper.CustomNumericDocValuesField, NumberFieldMapper.CustomNumericField, NumberFieldMapper.NumberFieldTypeFieldMapper.CopyTo, FieldMapper.MultiFieldsMapper.BuilderContextToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params| 修飾子とタイプ | フィールドと説明 |
|---|---|
static String |
CONTENT_TYPE |
coerce, ignoreMalformed, includeInAll, useSortedNumericDocValuescopyTo, defaultFieldType, fieldType, indexCreatedBefore2x, multiFieldsEMPTY_PARAMS| 修飾子 | コンストラクタと説明 |
|---|---|
protected |
TokenCountFieldMapper(String simpleName,
MappedFieldType fieldType,
MappedFieldType defaultFieldType,
Explicit<Boolean> ignoreMalformed,
Explicit<Boolean> coerce,
Settings indexSettings,
NamedAnalyzer analyzer,
FieldMapper.MultiFields multiFields,
FieldMapper.CopyTo copyTo) |
| 修飾子とタイプ | メソッドと説明 |
|---|---|
String |
analyzer()
Name of analyzer.
|
protected 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) |
boolean |
isGenerated()
Fields might not be available before indexing, for example _all, token_count,...
|
protected void |
parseCreateField(ParseContext context,
List<org.apache.lucene.document.Field> fields)
Parse the field value and populate
fields. |
addIntegerFields, customBoost, fieldType, innerParseCreateFieldaddDocValue, clone, includeInAll, includeInAllIfNotSet, parseDoubleValue, parseLongValue, unsetIncludeInAllcopyTo, doXContentAnalyzers, doXContentDocValues, hasCustomFieldDataSettings, indexOptionToString, indexTokenizeOptionToString, iterator, merge, name, parse, termVectorOptionsToString, toXContent, updateFieldTypesimpleNameequals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEach, spliteratorprotected TokenCountFieldMapper(String simpleName, MappedFieldType fieldType, MappedFieldType defaultFieldType, Explicit<Boolean> ignoreMalformed, Explicit<Boolean> coerce, Settings indexSettings, NamedAnalyzer analyzer, FieldMapper.MultiFields multiFields, FieldMapper.CopyTo copyTo)
protected void parseCreateField(ParseContext context, List<org.apache.lucene.document.Field> fields) throws IOException
FieldMapperfields.parseCreateField クラス内 NumberFieldMapperIOExceptionpublic String analyzer()
protected String contentType()
contentType クラス内 IntegerFieldMapperprotected void doMerge(Mapper mergeWith, boolean updateAllTypes)
FieldMappermergeWith in place.doMerge クラス内 NumberFieldMapperupdateAllTypes - TODOprotected void doXContentBody(XContentBuilder builder, boolean includeDefaults, ToXContent.Params params) throws IOException
doXContentBody クラス内 IntegerFieldMapperIOExceptionpublic boolean isGenerated()
FieldMapperisGenerated クラス内 FieldMapperCopyright © 2009–2016. All rights reserved.