public class CompletionFieldMapper extends FieldMapper
| 修飾子とタイプ | クラスと説明 |
|---|---|
static class |
CompletionFieldMapper.Builder |
static class |
CompletionFieldMapper.CompletionFieldType |
static class |
CompletionFieldMapper.Defaults |
static class |
CompletionFieldMapper.Fields |
static class |
CompletionFieldMapper.TypeParser |
FieldMapper.CopyTo, FieldMapper.MultiFieldsMapper.BuilderContextToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params| 修飾子とタイプ | フィールドと説明 |
|---|---|
static Set<String> |
ALLOWED_CONTENT_FIELD_NAMES |
static String |
CONTENT_TYPE |
copyTo, defaultFieldType, fieldType, indexCreatedBefore2x, multiFieldsEMPTY_PARAMS| コンストラクタと説明 |
|---|
CompletionFieldMapper(String simpleName,
MappedFieldType fieldType,
int maxInputLength,
Settings indexSettings,
FieldMapper.MultiFields multiFields,
FieldMapper.CopyTo copyTo) |
| 修飾子とタイプ | メソッドと説明 |
|---|---|
org.apache.lucene.util.BytesRef |
buildPayload(org.apache.lucene.util.BytesRef surfaceForm,
long weight,
org.apache.lucene.util.BytesRef payload) |
protected String |
contentType() |
static int |
correctSubStringLen(String input,
int len) |
protected void |
doMerge(Mapper mergeWith,
boolean updateAllTypes)
Merge changes coming from
mergeWith in place. |
CompletionFieldMapper.CompletionFieldType |
fieldType() |
org.apache.lucene.document.Field |
getCompletionField(ContextMapping.Context ctx,
String input,
org.apache.lucene.util.BytesRef payload) |
static boolean |
isReservedChar(char character) |
boolean |
isStoringPayloads() |
Mapper |
parse(ParseContext context)
Parses and indexes inputs
Parsing:
Acceptable format:
"STRING" - interpreted as field value (input)
"ARRAY" - each element can be one of "OBJECT" (see below)
"OBJECT" - { "input": STRING|ARRAY, "weight": STRING|INT, "contexts": ARRAY|OBJECT }
|
protected void |
parseCreateField(ParseContext context,
List<org.apache.lucene.document.Field> fields)
Parse the field value and populate
fields. |
XContentBuilder |
toXContent(XContentBuilder builder,
ToXContent.Params params) |
clone, copyTo, customBoost, doXContentAnalyzers, doXContentBody, doXContentDocValues, hasCustomFieldDataSettings, indexOptionToString, indexTokenizeOptionToString, isGenerated, iterator, merge, name, termVectorOptionsToString, updateFieldTypesimpleNameequals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEach, spliteratorpublic CompletionFieldMapper(String simpleName, MappedFieldType fieldType, int maxInputLength, Settings indexSettings, FieldMapper.MultiFields multiFields, FieldMapper.CopyTo copyTo)
public CompletionFieldMapper.CompletionFieldType fieldType()
fieldType クラス内 FieldMapperpublic Mapper parse(ParseContext context) throws IOException
parse クラス内 FieldMapperIOExceptionpublic org.apache.lucene.document.Field getCompletionField(ContextMapping.Context ctx, String input, org.apache.lucene.util.BytesRef payload)
public static int correctSubStringLen(String input, int len)
public org.apache.lucene.util.BytesRef buildPayload(org.apache.lucene.util.BytesRef surfaceForm,
long weight,
org.apache.lucene.util.BytesRef payload)
throws IOException
IOExceptionpublic XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws IOException
toXContent インタフェース内 ToXContenttoXContent クラス内 FieldMapperIOExceptionprotected void parseCreateField(ParseContext context, List<org.apache.lucene.document.Field> fields) throws IOException
FieldMapperfields.parseCreateField クラス内 FieldMapperIOExceptionprotected String contentType()
contentType クラス内 FieldMapperpublic boolean isStoringPayloads()
protected void doMerge(Mapper mergeWith, boolean updateAllTypes)
FieldMappermergeWith in place.doMerge クラス内 FieldMapperupdateAllTypes - TODOpublic static boolean isReservedChar(char character)
Copyright © 2009–2016. All rights reserved.