@Deprecated public class SlowCollatedTermRangeFilter extends MultiTermQueryWrapperFilter<SlowCollatedTermRangeQuery>
This filter matches the documents looking for terms that fall into the
supplied range according to String.compareTo(String)
, unless a Collator
is provided. It is not intended
for numerical ranges; use NumericRangeFilter
instead.
If you construct a large number of range filters with different ranges but on the
same field, FieldCacheRangeFilter
may have significantly better performance.
query
Constructor and Description |
---|
SlowCollatedTermRangeFilter(String fieldName,
String lowerTerm,
String upperTerm,
boolean includeLower,
boolean includeUpper,
Collator collator)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
Collator |
getCollator()
Deprecated.
Returns the collator used to determine range inclusion, if any.
|
String |
getLowerTerm()
Deprecated.
Returns the lower value of this range filter
|
String |
getUpperTerm()
Deprecated.
Returns the upper value of this range filter
|
boolean |
includesLower()
Deprecated.
Returns
true if the lower endpoint is inclusive |
boolean |
includesUpper()
Deprecated.
Returns
true if the upper endpoint is inclusive |
equals, getDocIdSet, getField, hashCode, toString
public SlowCollatedTermRangeFilter(String fieldName, String lowerTerm, String upperTerm, boolean includeLower, boolean includeUpper, Collator collator)
lowerTerm
- The lower bound on this rangeupperTerm
- The upper bound on this rangeincludeLower
- Does this range include the lower bound?includeUpper
- Does this range include the upper bound?collator
- The collator to use when determining range inclusion; set
to null to use Unicode code point ordering instead of collation.IllegalArgumentException
- if both terms are null or if
lowerTerm is null and includeLower is true (similar for upperTerm
and includeUpper)public String getLowerTerm()
public String getUpperTerm()
public boolean includesLower()
true
if the lower endpoint is inclusivepublic boolean includesUpper()
true
if the upper endpoint is inclusivepublic Collator getCollator()
Copyright © 2000-2013 Apache Software Foundation. All Rights Reserved.