public class PercolatorFieldMapper extends FieldMapper
Modifier and Type | Class and Description |
---|---|
static class |
PercolatorFieldMapper.Builder |
static class |
PercolatorFieldMapper.PercolatorFieldType |
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_FULL_FIELD_NAME |
static PercolatorFieldMapper.PercolatorFieldType |
FIELD_TYPE |
static java.lang.String |
NAME |
static java.lang.String |
QUERY_BUILDER_FULL_FIELD_NAME |
static java.lang.String |
TYPE_NAME |
static java.lang.String |
UNKNOWN_QUERY_FULL_FIELD_NAME |
COERCE_SETTING, copyTo, defaultFieldType, fieldType, IGNORE_MALFORMED_SETTING, multiFields
EMPTY_PARAMS
Constructor and Description |
---|
PercolatorFieldMapper(java.lang.String simpleName,
MappedFieldType fieldType,
MappedFieldType defaultFieldType,
Settings indexSettings,
FieldMapper.MultiFields multiFields,
FieldMapper.CopyTo copyTo,
QueryShardContext queryShardContext,
KeywordFieldMapper queryTermsField,
KeywordFieldMapper unknownQueryField,
BinaryFieldMapper queryBuilderField) |
Modifier and Type | Method and Description |
---|---|
protected java.lang.String |
contentType() |
java.util.Iterator<Mapper> |
iterator() |
Mapper |
parse(ParseContext context)
Parse using the provided
ParseContext and return a mapping
update if dynamic mappings modified the mappings, or null if
mappings were not modified. |
protected void |
parseCreateField(ParseContext context,
java.util.List<org.apache.lucene.document.Field> fields)
Parse the field value and populate
fields . |
static org.apache.lucene.search.Query |
parseQuery(QueryShardContext context,
boolean mapUnmappedFieldsAsString,
XContentParser parser) |
clone, copyTo, customBoost, doMerge, doXContentAnalyzers, doXContentBody, doXContentDocValues, fieldType, indexOptionToString, indexTokenizeOption, isGenerated, merge, name, termVectorOptionsToString, toXContent, updateFieldType
simpleName
public static final java.lang.String TYPE_NAME
public static final java.lang.String NAME
public static final java.lang.String CONTENT_TYPE
public static final PercolatorFieldMapper.PercolatorFieldType FIELD_TYPE
public static final java.lang.String EXTRACTED_TERMS_FULL_FIELD_NAME
public static final java.lang.String UNKNOWN_QUERY_FULL_FIELD_NAME
public static final java.lang.String QUERY_BUILDER_FULL_FIELD_NAME
public PercolatorFieldMapper(java.lang.String simpleName, MappedFieldType fieldType, MappedFieldType defaultFieldType, Settings indexSettings, FieldMapper.MultiFields multiFields, FieldMapper.CopyTo copyTo, QueryShardContext queryShardContext, KeywordFieldMapper queryTermsField, KeywordFieldMapper unknownQueryField, BinaryFieldMapper queryBuilderField)
public Mapper parse(ParseContext context) throws java.io.IOException
FieldMapper
ParseContext
and return a mapping
update if dynamic mappings modified the mappings, or null
if
mappings were not modified.parse
in class FieldMapper
java.io.IOException
public static org.apache.lucene.search.Query parseQuery(QueryShardContext context, boolean mapUnmappedFieldsAsString, 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<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