public static final class RangeFieldMapper.RangeFieldType extends MappedFieldType
MappedFieldType.Relation
Modifier and Type | Field and Description |
---|---|
protected DateMathParser |
dateMathParser |
protected FormatDateTimeFormatter |
dateTimeFormatter |
protected RangeFieldMapper.RangeType |
rangeType |
Constructor and Description |
---|
RangeFieldType(RangeFieldMapper.RangeFieldType other) |
RangeFieldType(RangeFieldMapper.RangeType type) |
Modifier and Type | Method and Description |
---|---|
void |
checkCompatibility(MappedFieldType fieldType,
java.util.List<java.lang.String> conflicts,
boolean strict)
Checks for any conflicts between this field type and other.
|
MappedFieldType |
clone() |
protected DateMathParser |
dateMathParser() |
FormatDateTimeFormatter |
dateTimeFormatter() |
boolean |
equals(java.lang.Object o) |
int |
hashCode() |
org.apache.lucene.search.Query |
rangeQuery(java.lang.Object lowerTerm,
java.lang.Object upperTerm,
boolean includeLower,
boolean includeUpper,
ShapeRelation relation,
org.joda.time.DateTimeZone timeZone,
DateMathParser parser,
QueryShardContext context) |
org.apache.lucene.search.Query |
rangeQuery(java.lang.Object lowerTerm,
java.lang.Object upperTerm,
boolean includeLower,
boolean includeUpper,
ShapeRelation relation,
QueryShardContext context) |
void |
setDateTimeFormatter(FormatDateTimeFormatter dateTimeFormatter) |
org.apache.lucene.search.Query |
termQuery(java.lang.Object value,
QueryShardContext context)
Generates a query that will only match documents that contain the given value.
|
java.lang.String |
typeName()
Returns the name of this type, as would be specified in mapping properties
|
boost, docValueFormat, eagerGlobalOrdinals, extractTerm, failIfNoDocValues, failIfNotIndexed, fielddataBuilder, fuzzyQuery, hasDocValues, indexAnalyzer, isAggregatable, isFieldWithinQuery, isSearchable, name, nullValue, nullValueAsString, nullValueQuery, prefixQuery, queryStringTermQuery, rangeQuery, regexpQuery, searchAnalyzer, searchQuoteAnalyzer, setBoost, setEagerGlobalOrdinals, setHasDocValues, setIndexAnalyzer, setName, setNullValue, setSearchAnalyzer, setSearchQuoteAnalyzer, setSimilarity, similarity, stats, termsQuery, valueForDisplay
checkIfFrozen, docValuesType, freeze, indexOptions, numericPrecisionStep, numericType, omitNorms, pointDimensionCount, pointNumBytes, setDimensions, setDocValuesType, setIndexOptions, setNumericPrecisionStep, setNumericType, setOmitNorms, setStored, setStoreTermVectorOffsets, setStoreTermVectorPayloads, setStoreTermVectorPositions, setStoreTermVectors, setTokenized, stored, storeTermVectorOffsets, storeTermVectorPayloads, storeTermVectorPositions, storeTermVectors, tokenized, toString
protected RangeFieldMapper.RangeType rangeType
protected FormatDateTimeFormatter dateTimeFormatter
protected DateMathParser dateMathParser
public RangeFieldType(RangeFieldMapper.RangeType type)
public RangeFieldType(RangeFieldMapper.RangeFieldType other)
public MappedFieldType clone()
clone
in class MappedFieldType
public boolean equals(java.lang.Object o)
equals
in class MappedFieldType
public int hashCode()
hashCode
in class MappedFieldType
public java.lang.String typeName()
MappedFieldType
typeName
in class MappedFieldType
public void checkCompatibility(MappedFieldType fieldType, java.util.List<java.lang.String> conflicts, boolean strict)
MappedFieldType
checkCompatibility
in class MappedFieldType
public FormatDateTimeFormatter dateTimeFormatter()
public void setDateTimeFormatter(FormatDateTimeFormatter dateTimeFormatter)
protected DateMathParser dateMathParser()
public org.apache.lucene.search.Query termQuery(java.lang.Object value, QueryShardContext context)
MappedFieldType
TermQuery
over the value bytes,
boosted by MappedFieldType.boost()
.termQuery
in class MappedFieldType
public org.apache.lucene.search.Query rangeQuery(java.lang.Object lowerTerm, java.lang.Object upperTerm, boolean includeLower, boolean includeUpper, ShapeRelation relation, QueryShardContext context)
public org.apache.lucene.search.Query rangeQuery(java.lang.Object lowerTerm, java.lang.Object upperTerm, boolean includeLower, boolean includeUpper, ShapeRelation relation, org.joda.time.DateTimeZone timeZone, DateMathParser parser, QueryShardContext context)