public class PercolatorFieldMapper extends FieldMapper
Modifier and Type | Class and Description |
---|---|
static class |
PercolatorFieldMapper.Builder |
static class |
PercolatorFieldMapper.FieldType |
static class |
PercolatorFieldMapper.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 |
static java.lang.String |
EXTRACTED_TERMS_FIELD_NAME |
static java.lang.String |
EXTRACTION_RESULT_FIELD_NAME |
static Setting<java.lang.Boolean> |
INDEX_MAP_UNMAPPED_FIELDS_AS_STRING_SETTING |
static XContentType |
QUERY_BUILDER_CONTENT_TYPE |
static java.lang.String |
QUERY_BUILDER_FIELD_NAME |
COERCE_SETTING, copyTo, defaultFieldType, fieldType, IGNORE_MALFORMED_SETTING, indexCreatedVersion, multiFields
EMPTY_PARAMS
Constructor and Description |
---|
PercolatorFieldMapper(java.lang.String simpleName,
MappedFieldType fieldType,
MappedFieldType defaultFieldType,
Settings indexSettings,
FieldMapper.MultiFields multiFields,
FieldMapper.CopyTo copyTo,
java.util.function.Supplier<QueryShardContext> queryShardContext,
KeywordFieldMapper queryTermsField,
KeywordFieldMapper extractionResultField,
BinaryFieldMapper queryBuilderField) |
Modifier and Type | Method and Description |
---|---|
protected java.lang.String |
contentType() |
java.util.Iterator<Mapper> |
iterator() |
Mapper |
parse(ParseContext context) |
protected void |
parseCreateField(ParseContext context,
java.util.List<IndexableField> fields) |
static Query |
parseQuery(QueryShardContext context,
boolean mapUnmappedFieldsAsString,
QueryParseContext queryParseContext,
XContentParser parser) |
static Query |
parseQuery(QueryShardContext context,
boolean mapUnmappedFieldsAsString,
XContentParser parser) |
FieldMapper |
updateFieldType(java.util.Map<java.lang.String,MappedFieldType> fullNameToFieldType) |
clone, copyTo, customBoost, doMerge, doXContentAnalyzers, doXContentBody, doXContentDocValues, fieldType, indexOptionToString, indexTokenizeOption, merge, name, termVectorOptionsToString, toXContent
simpleName
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isFragment
public static final XContentType QUERY_BUILDER_CONTENT_TYPE
public static final Setting<java.lang.Boolean> INDEX_MAP_UNMAPPED_FIELDS_AS_STRING_SETTING
public static final java.lang.String CONTENT_TYPE
public static final java.lang.String EXTRACTED_TERMS_FIELD_NAME
public static final java.lang.String EXTRACTION_RESULT_FIELD_NAME
public static final java.lang.String QUERY_BUILDER_FIELD_NAME
public PercolatorFieldMapper(java.lang.String simpleName, MappedFieldType fieldType, MappedFieldType defaultFieldType, Settings indexSettings, FieldMapper.MultiFields multiFields, FieldMapper.CopyTo copyTo, java.util.function.Supplier<QueryShardContext> queryShardContext, KeywordFieldMapper queryTermsField, KeywordFieldMapper extractionResultField, BinaryFieldMapper queryBuilderField)
public FieldMapper updateFieldType(java.util.Map<java.lang.String,MappedFieldType> fullNameToFieldType)
updateFieldType
in class FieldMapper
public Mapper parse(ParseContext context) throws java.io.IOException
parse
in class FieldMapper
java.io.IOException
public static Query parseQuery(QueryShardContext context, boolean mapUnmappedFieldsAsString, XContentParser parser) throws java.io.IOException
java.io.IOException
public static Query parseQuery(QueryShardContext context, boolean mapUnmappedFieldsAsString, QueryParseContext queryParseContext, XContentParser parser) throws java.io.IOException
java.io.IOException
public java.util.Iterator<Mapper> iterator()
iterator
in interface java.lang.Iterable<Mapper>
iterator
in class FieldMapper
protected void parseCreateField(ParseContext context, java.util.List<IndexableField> fields) throws java.io.IOException
parseCreateField
in class FieldMapper
java.io.IOException
protected java.lang.String contentType()
contentType
in class FieldMapper