org.elasticsearch.index.mapper.internal
Class AllFieldMapper
java.lang.Object
org.elasticsearch.index.mapper.core.AbstractFieldMapper<Void>
org.elasticsearch.index.mapper.internal.AllFieldMapper
- All Implemented Interfaces:
- ToXContent, FieldMapper<Void>, InternalMapper, Mapper, RootMapper
public class AllFieldMapper
- extends AbstractFieldMapper<Void>
- implements InternalMapper, RootMapper
Constructor Summary |
|
AllFieldMapper()
|
protected |
AllFieldMapper(String name,
org.apache.lucene.document.Field.Store store,
org.apache.lucene.document.Field.TermVector termVector,
boolean omitNorms,
org.apache.lucene.index.FieldInfo.IndexOptions indexOptions,
NamedAnalyzer indexAnalyzer,
NamedAnalyzer searchAnalyzer,
boolean enabled,
boolean autoBoost)
|
Methods inherited from class org.elasticsearch.index.mapper.core.AbstractFieldMapper |
analyzed, boost, close, customBoost, doXContentBody, fieldDataType, fieldFilter, fuzzyQuery, fuzzyQuery, index, indexAnalyzer, indexed, indexedValue, indexOptions, indexOptionToString, name, names, nullValueFilter, omitNorms, prefixFilter, prefixQuery, rangeFilter, rangeQuery, searchAnalyzer, searchQuoteAnalyzer, store, stored, termVector, traverse, traverse, useFieldQueryWithQueryString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NAME
public static final String NAME
- See Also:
- Constant Field Values
CONTENT_TYPE
public static final String CONTENT_TYPE
- See Also:
- Constant Field Values
AllFieldMapper
public AllFieldMapper()
AllFieldMapper
protected AllFieldMapper(String name,
org.apache.lucene.document.Field.Store store,
org.apache.lucene.document.Field.TermVector termVector,
boolean omitNorms,
org.apache.lucene.index.FieldInfo.IndexOptions indexOptions,
NamedAnalyzer indexAnalyzer,
NamedAnalyzer searchAnalyzer,
boolean enabled,
boolean autoBoost)
enabled
public boolean enabled()
queryStringTermQuery
public org.apache.lucene.search.Query queryStringTermQuery(org.apache.lucene.index.Term term)
- Description copied from interface:
FieldMapper
- A term query to use when parsing a query string. Can return null.
- Specified by:
queryStringTermQuery
in interface FieldMapper<Void>
- Overrides:
queryStringTermQuery
in class AbstractFieldMapper<Void>
fieldQuery
public org.apache.lucene.search.Query fieldQuery(String value,
QueryParseContext context)
- Description copied from interface:
FieldMapper
- A field query for the specified value.
- Specified by:
fieldQuery
in interface FieldMapper<Void>
- Overrides:
fieldQuery
in class AbstractFieldMapper<Void>
preParse
public void preParse(ParseContext context)
throws IOException
- Specified by:
preParse
in interface RootMapper
- Throws:
IOException
postParse
public void postParse(ParseContext context)
throws IOException
- Specified by:
postParse
in interface RootMapper
- Throws:
IOException
parse
public void parse(ParseContext context)
throws IOException
- Specified by:
parse
in interface Mapper
- Overrides:
parse
in class AbstractFieldMapper<Void>
- Throws:
IOException
validate
public void validate(ParseContext context)
throws MapperParsingException
- Specified by:
validate
in interface RootMapper
- Throws:
MapperParsingException
includeInObject
public boolean includeInObject()
- Description copied from interface:
RootMapper
- Should the mapper be included in the root
ObjectMapper
.
- Specified by:
includeInObject
in interface RootMapper
parseCreateField
protected org.apache.lucene.document.Fieldable parseCreateField(ParseContext context)
throws IOException
- Specified by:
parseCreateField
in class AbstractFieldMapper<Void>
- Throws:
IOException
value
public Void value(org.apache.lucene.document.Fieldable field)
- Description copied from interface:
FieldMapper
- Returns the actual value of the field.
- Specified by:
value
in interface FieldMapper<Void>
valueFromString
public Void valueFromString(String value)
- Specified by:
valueFromString
in interface FieldMapper<Void>
valueAsString
public String valueAsString(org.apache.lucene.document.Fieldable field)
- Description copied from interface:
FieldMapper
- Returns the actual value of the field as string.
- Specified by:
valueAsString
in interface FieldMapper<Void>
valueForSearch
public Object valueForSearch(org.apache.lucene.document.Fieldable field)
- Description copied from interface:
FieldMapper
- Returns the value that will be used as a result for search. Can be only of specific types... .
- Specified by:
valueForSearch
in interface FieldMapper<Void>
- Overrides:
valueForSearch
in class AbstractFieldMapper<Void>
contentType
protected String contentType()
- Specified by:
contentType
in class AbstractFieldMapper<Void>
toXContent
public XContentBuilder toXContent(XContentBuilder builder,
ToXContent.Params params)
throws IOException
- Specified by:
toXContent
in interface ToXContent
- Overrides:
toXContent
in class AbstractFieldMapper<Void>
- Throws:
IOException
merge
public void merge(Mapper mergeWith,
MergeContext mergeContext)
throws MergeMappingException
- Specified by:
merge
in interface Mapper
- Overrides:
merge
in class AbstractFieldMapper<Void>
- Throws:
MergeMappingException
Copyright © 2009-2012. All Rights Reserved.