|
||||||||||
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.ConstantScoreRangeQuery
public class ConstantScoreRangeQuery
A range query that returns a constant score equal to its boost for all documents in the range.
It does not have an upper bound on the number of clauses covered in the range.
If an endpoint is null, it is said to be "open". Either or both endpoints may be open. Open endpoints may not be exclusive (you can't select all but the first or last term without explicitly specifying the term to exclude.)
Constructor Summary | |
---|---|
ConstantScoreRangeQuery(String fieldName,
String lowerVal,
String upperVal,
boolean includeLower,
boolean includeUpper)
|
|
ConstantScoreRangeQuery(String fieldName,
String lowerVal,
String upperVal,
boolean includeLower,
boolean includeUpper,
Collator collator)
|
Method Summary | |
---|---|
boolean |
equals(Object o)
Returns true if o is equal to this. |
String |
getField()
Returns the field name for this query |
String |
getLowerVal()
Returns the value of the lower endpoint of this range query, null if open ended |
String |
getUpperVal()
Returns the value of the upper endpoint of this range query, null if open ended |
int |
hashCode()
Returns a hash code value for this object. |
boolean |
includesLower()
Returns true if the lower endpoint is inclusive |
boolean |
includesUpper()
Returns true if the upper endpoint is inclusive |
Query |
rewrite(IndexReader reader)
Expert: called to re-write queries into primitive queries. |
String |
toString(String field)
Prints a user-readable version of this query. |
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 getField()
public String getLowerVal()
public String getUpperVal()
public boolean includesLower()
true
if the lower endpoint is inclusive
public boolean includesUpper()
true
if the upper endpoint is inclusive
public Query rewrite(IndexReader reader) throws IOException
Query
rewrite
in class Query
IOException
public String toString(String field)
toString
in class Query
public boolean equals(Object o)
o
is equal to this.
equals
in class Object
public int hashCode()
hashCode
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |