public class ShortFieldMapper extends NumberFieldMapper<Short>
| Modifier and Type | Class and Description |
|---|---|
static class |
ShortFieldMapper.Builder |
static class |
ShortFieldMapper.CustomShortNumericField |
static class |
ShortFieldMapper.Defaults |
static class |
ShortFieldMapper.TypeParser |
NumberFieldMapper.CustomLongNumericDocValuesField, NumberFieldMapper.CustomNumericDocValuesField, NumberFieldMapper.CustomNumericFieldAbstractFieldMapper.CopyTo, AbstractFieldMapper.MultiFieldsMapper.BuilderContextToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.ParamsFieldMapper.Loading, FieldMapper.Names| Modifier and Type | Field and Description |
|---|---|
static String |
CONTENT_TYPE |
static int |
DEFAULT_PRECISION_STEP |
coerce, ignoreMalformed, includeInAll, precisionStep, useSortedNumericDocValuesboost, copyTo, customFieldDataSettings, docValues, docValuesFormat, fieldDataType, fieldType, indexAnalyzer, multiFields, names, normsLoading, postingsFormat, searchAnalyzer, similarityEMPTY_ARRAYEMPTY_PARAMSDOC_VALUES_FORMAT| Modifier | Constructor and Description |
|---|---|
protected |
ShortFieldMapper(FieldMapper.Names names,
int precisionStep,
float boost,
org.apache.lucene.document.FieldType fieldType,
Boolean docValues,
Short nullValue,
Explicit<Boolean> ignoreMalformed,
Explicit<Boolean> coerce,
PostingsFormatProvider postingsProvider,
DocValuesFormatProvider docValuesProvider,
SimilarityProvider similarity,
FieldMapper.Loading normsLoading,
Settings fieldDataSettings,
Settings indexSettings,
AbstractFieldMapper.MultiFields multiFields,
AbstractFieldMapper.CopyTo copyTo) |
| Modifier and Type | Method and Description |
|---|---|
protected String |
contentType() |
protected boolean |
customBoost()
Derived classes can override it to specify that boost value is set by derived classes.
|
FieldDataType |
defaultFieldDataType() |
org.apache.lucene.document.FieldType |
defaultFieldType() |
protected void |
doXContentBody(XContentBuilder builder,
boolean includeDefaults,
ToXContent.Params params) |
org.apache.lucene.search.Query |
fuzzyQuery(String value,
Fuzziness fuzziness,
int prefixLength,
int maxExpansions,
boolean transpositions) |
org.apache.lucene.util.BytesRef |
indexedValueForSearch(Object value)
Returns the indexed value used to construct search "values".
|
protected void |
innerParseCreateField(ParseContext context,
List<org.apache.lucene.document.Field> fields) |
protected int |
maxPrecisionStep() |
void |
merge(Mapper mergeWith,
MergeContext mergeContext) |
org.apache.lucene.search.Filter |
nullValueFilter()
Null value filter, returns null if there is no null value associated with the field.
|
org.apache.lucene.search.Filter |
rangeFilter(Object lowerTerm,
Object upperTerm,
boolean includeLower,
boolean includeUpper,
QueryParseContext context) |
org.apache.lucene.search.Filter |
rangeFilter(QueryParseContext parseContext,
Object lowerTerm,
Object upperTerm,
boolean includeLower,
boolean includeUpper,
QueryParseContext context)
A range filter based on the field data cache.
|
org.apache.lucene.search.Query |
rangeQuery(Object lowerTerm,
Object upperTerm,
boolean includeLower,
boolean includeUpper,
QueryParseContext context) |
FieldStats |
stats(org.apache.lucene.index.Terms terms,
int maxDoc) |
Short |
value(Object value)
Returns the actual value of the field.
|
addDocValue, close, fieldDataTermsFilter, includeInAll, includeInAllIfNotSet, isNumeric, parseCreateField, parseDoubleValue, parseLongValue, popCachedStream, precisionStep, termFilter, termQuery, unsetIncludeInAll, useTermQueryWithQueryString, valueForSearchboost, copyTo, defaultDocValuesFormat, defaultPostingFormat, docValuesFormatProvider, fieldDataType, fieldType, hasDocValues, indexAnalyzer, indexOptionToString, indexTokenizeOptionToString, isGenerated, isSortable, name, names, normsLoading, parse, postingsFormatProvider, prefixFilter, prefixQuery, queryStringTermQuery, regexpFilter, regexpQuery, searchAnalyzer, searchQuoteAnalyzer, similarity, supportsNullValue, termsFilter, termVectorOptionsToString, toXContent, traverse, traverseclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitname, parse, traverse, traversetoXContentpublic static final String CONTENT_TYPE
public static final int DEFAULT_PRECISION_STEP
protected ShortFieldMapper(FieldMapper.Names names, int precisionStep, float boost, org.apache.lucene.document.FieldType fieldType, Boolean docValues, Short nullValue, Explicit<Boolean> ignoreMalformed, Explicit<Boolean> coerce, PostingsFormatProvider postingsProvider, DocValuesFormatProvider docValuesProvider, SimilarityProvider similarity, FieldMapper.Loading normsLoading, @Nullable Settings fieldDataSettings, Settings indexSettings, AbstractFieldMapper.MultiFields multiFields, AbstractFieldMapper.CopyTo copyTo)
public org.apache.lucene.document.FieldType defaultFieldType()
defaultFieldType in class AbstractFieldMapper<Short>public FieldDataType defaultFieldDataType()
defaultFieldDataType in class AbstractFieldMapper<Short>protected int maxPrecisionStep()
maxPrecisionStep in class NumberFieldMapper<Short>public Short value(Object value)
FieldMapperpublic org.apache.lucene.util.BytesRef indexedValueForSearch(Object value)
FieldMapperindexedValueForSearch in interface FieldMapper<Short>indexedValueForSearch in class AbstractFieldMapper<Short>public org.apache.lucene.search.Query fuzzyQuery(String value, Fuzziness fuzziness, int prefixLength, int maxExpansions, boolean transpositions)
fuzzyQuery in interface FieldMapper<Short>fuzzyQuery in class NumberFieldMapper<Short>public org.apache.lucene.search.Query rangeQuery(Object lowerTerm, Object upperTerm, boolean includeLower, boolean includeUpper, @Nullable QueryParseContext context)
rangeQuery in interface FieldMapper<Short>rangeQuery in class NumberFieldMapper<Short>public org.apache.lucene.search.Filter rangeFilter(Object lowerTerm, Object upperTerm, boolean includeLower, boolean includeUpper, @Nullable QueryParseContext context)
rangeFilter in interface FieldMapper<Short>rangeFilter in class NumberFieldMapper<Short>public org.apache.lucene.search.Filter rangeFilter(QueryParseContext parseContext, Object lowerTerm, Object upperTerm, boolean includeLower, boolean includeUpper, @Nullable QueryParseContext context)
NumberFieldMapperrangeFilter in class NumberFieldMapper<Short>public org.apache.lucene.search.Filter nullValueFilter()
FieldMappernullValueFilter in interface FieldMapper<Short>nullValueFilter in class AbstractFieldMapper<Short>protected boolean customBoost()
AbstractFieldMappercustomBoost in class AbstractFieldMapper<Short>protected void innerParseCreateField(ParseContext context, List<org.apache.lucene.document.Field> fields) throws IOException
innerParseCreateField in class NumberFieldMapper<Short>IOExceptionprotected String contentType()
contentType in class AbstractFieldMapper<Short>public void merge(Mapper mergeWith, MergeContext mergeContext) throws MergeMappingException
merge in interface Mappermerge in class NumberFieldMapper<Short>MergeMappingExceptionprotected void doXContentBody(XContentBuilder builder, boolean includeDefaults, ToXContent.Params params) throws IOException
doXContentBody in class NumberFieldMapper<Short>IOExceptionpublic FieldStats stats(org.apache.lucene.index.Terms terms, int maxDoc) throws IOException
stats in interface FieldMapper<Short>stats in class AbstractFieldMapper<Short>FieldStats instance that maps to the type of this field based on the provided Terms instance.IOExceptionCopyright © 2009–2016. All rights reserved.