|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.lucene.search.Query
org.apache.lucene.search.MultiTermQuery
org.apache.lucene.search.TermRangeQuery
org.apache.lucene.search.ConstantScoreRangeQuery
TermRangeQuery for term ranges or
NumericRangeQuery for numeric ranges instead.
This class will be removed in Lucene 3.0.
public class ConstantScoreRangeQuery
A range query that returns a constant score equal to its boost for all documents in the exclusive range of terms.
It does not have an upper bound on the number of clauses covered in the range.
This query matches the documents looking for terms that fall into the
supplied range according to String.compareTo(String). It is not intended
for numerical ranges, use NumericRangeQuery instead.
This query is hardwired to MultiTermQuery.CONSTANT_SCORE_AUTO_REWRITE_DEFAULT.
If you want to change this, use TermRangeQuery instead.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.apache.lucene.search.MultiTermQuery |
|---|
MultiTermQuery.ConstantScoreAutoRewrite, MultiTermQuery.RewriteMethod |
| Field Summary |
|---|
| Fields inherited from class org.apache.lucene.search.MultiTermQuery |
|---|
CONSTANT_SCORE_AUTO_REWRITE_DEFAULT, CONSTANT_SCORE_BOOLEAN_QUERY_REWRITE, CONSTANT_SCORE_FILTER_REWRITE, rewriteMethod, SCORING_BOOLEAN_QUERY_REWRITE, term |
| Constructor Summary | |
|---|---|
ConstantScoreRangeQuery(String fieldName,
String lowerVal,
String upperVal,
boolean includeLower,
boolean includeUpper)
Deprecated. |
|
ConstantScoreRangeQuery(String fieldName,
String lowerVal,
String upperVal,
boolean includeLower,
boolean includeUpper,
Collator collator)
Deprecated. |
|
| Method Summary | |
|---|---|
String |
getLowerVal()
Deprecated. |
String |
getUpperVal()
Deprecated. |
void |
setRewriteMethod(MultiTermQuery.RewriteMethod method)
Deprecated. Changes of mode are not supported by this class (fixed to constant score rewrite mode) |
| Methods inherited from class org.apache.lucene.search.TermRangeQuery |
|---|
equals, getCollator, getEnum, getField, getLowerTerm, getUpperTerm, hashCode, includesLower, includesUpper, toString |
| Methods inherited from class org.apache.lucene.search.MultiTermQuery |
|---|
clearTotalNumberOfTerms, getRewriteMethod, getTerm, getTotalNumberOfTerms, incTotalNumberOfTerms, rewrite |
| Methods inherited from class org.apache.lucene.search.Query |
|---|
clone, combine, createWeight, extractTerms, getBoost, getSimilarity, mergeBooleanQueries, setBoost, toString, weight |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ConstantScoreRangeQuery(String fieldName,
String lowerVal,
String upperVal,
boolean includeLower,
boolean includeUpper)
public ConstantScoreRangeQuery(String fieldName,
String lowerVal,
String upperVal,
boolean includeLower,
boolean includeUpper,
Collator collator)
| Method Detail |
|---|
public String getLowerVal()
public String getUpperVal()
public void setRewriteMethod(MultiTermQuery.RewriteMethod method)
setRewriteMethod in class MultiTermQuery
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||