|
||||||||||
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(java.lang.String fieldName,
java.lang.String lowerVal,
java.lang.String upperVal,
boolean includeLower,
boolean includeUpper)
|
|
ConstantScoreRangeQuery(java.lang.String fieldName,
java.lang.String lowerVal,
java.lang.String upperVal,
boolean includeLower,
boolean includeUpper,
java.text.Collator collator)
|
Method Summary | |
---|---|
boolean |
equals(java.lang.Object o)
Returns true if o is equal to this. |
java.lang.String |
getField()
Returns the field name for this query |
java.lang.String |
getLowerVal()
Returns the value of the lower endpoint of this range query, null if open ended |
java.lang.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. |
java.lang.String |
toString(java.lang.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(java.lang.String fieldName, java.lang.String lowerVal, java.lang.String upperVal, boolean includeLower, boolean includeUpper)
public ConstantScoreRangeQuery(java.lang.String fieldName, java.lang.String lowerVal, java.lang.String upperVal, boolean includeLower, boolean includeUpper, java.text.Collator collator)
Method Detail |
---|
public java.lang.String getField()
public java.lang.String getLowerVal()
public java.lang.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 java.io.IOException
Query
rewrite
in class Query
java.io.IOException
public java.lang.String toString(java.lang.String field)
toString
in class Query
public boolean equals(java.lang.Object o)
o
is equal to this.
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |