org.apache.lucene.index.IndexableFieldType
public static final class RangeFieldMapper.RangeFieldType extends MappedFieldType
MappedFieldType.Relation
Modifier and Type | Field | Description |
---|---|---|
protected DateMathParser |
dateMathParser |
|
protected FormatDateTimeFormatter |
dateTimeFormatter |
|
protected RangeFieldMapper.RangeType |
rangeType |
Modifier and Type | Method | 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) |
|
org.apache.lucene.search.Query |
existsQuery(QueryShardContext context) |
|
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) |
Factory method for range queries.
|
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
|
checkIfFrozen, docValuesType, freeze, indexOptions, omitNorms, pointDimensionCount, pointNumBytes, setDimensions, setDocValuesType, setIndexOptions, setOmitNorms, setStored, setStoreTermVectorOffsets, setStoreTermVectorPayloads, setStoreTermVectorPositions, setStoreTermVectors, setTokenized, stored, storeTermVectorOffsets, storeTermVectorPayloads, storeTermVectorPositions, storeTermVectors, tokenized, toString
boost, docValueFormat, eagerGlobalOrdinals, extractTerm, failIfNoDocValues, failIfNotIndexed, fielddataBuilder, fuzzyQuery, hasDocValues, indexAnalyzer, isAggregatable, isFieldWithinQuery, isSearchable, name, nullValue, nullValueAsString, nullValueQuery, prefixQuery, queryStringTermQuery, regexpQuery, searchAnalyzer, searchQuoteAnalyzer, setBoost, setEagerGlobalOrdinals, setHasDocValues, setIndexAnalyzer, setName, setNullValue, setSearchAnalyzer, setSearchQuoteAnalyzer, setSimilarity, similarity, termsQuery, valueForDisplay
protected RangeFieldMapper.RangeType rangeType
protected FormatDateTimeFormatter dateTimeFormatter
protected DateMathParser dateMathParser
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 existsQuery(QueryShardContext context)
existsQuery
in class MappedFieldType
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, org.joda.time.DateTimeZone timeZone, DateMathParser parser, QueryShardContext context)
MappedFieldType
rangeQuery
in class MappedFieldType
relation
- the relation, nulls should be interpreted like INTERSECTS