|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.lucene.search.Query
The abstract base class for queries.
Instantiable subclasses are:
A parser for queries is contained in:
Field Summary | |
protected float |
boost
|
Constructor Summary | |
Query()
|
Method Summary | |
float |
getBoost()
Gets the boost for this term. |
void |
setBoost(float b)
Sets the boost for this term to b . |
abstract String |
toString(String field)
Prints a query to a string, with field as the default field
for terms. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected float boost
Constructor Detail |
public Query()
Method Detail |
public void setBoost(float b)
b
. Documents containing
this term will (in addition to the normal weightings) have their score
multiplied by b
.
public float getBoost()
b
. The boost is 1.0 by default.
public abstract String toString(String field)
field
as the default field
for terms.
The representation used is one that is readable by QueryParser (although, if the query was created by the parser, the printed representation may not be exactly what was parsed).
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |