diff --git a/src/java/org/apache/lucene/search/Query.java b/src/java/org/apache/lucene/search/Query.java index 85c30912c5f..63db432ec14 100644 --- a/src/java/org/apache/lucene/search/Query.java +++ b/src/java/org/apache/lucene/search/Query.java @@ -60,55 +60,67 @@ import org.apache.lucene.document.Document; import org.apache.lucene.index.IndexReader; /** The abstract base class for queries. -
Instantiable subclasses are: -
A parser for queries is contained in: -
Instantiable subclasses are: +
A parser for queries is contained in: +
b
. Documents containing
+ * this term will (in addition to the normal weightings) have their score
+ * multiplied by b
.
+ */
+ public void setBoost(float b) { boost = b; }
- /** Sets the boost for this term to b
. Documents containing
- this term will (in addition to the normal weightings) have their score
- multiplied by b
. */
- public void setBoost(float b) { boost = b; }
+ /**
+ * Gets the boost for this term. Documents containing
+ * this term will (in addition to the normal weightings) have their score
+ * multiplied by b
. The boost is 1.0 by default.
+ */
+ public float getBoost() { return boost; }
- /** Gets the boost for this term. Documents containing
- this term will (in addition to the normal weightings) have their score
- multiplied by b
. The boost is 1.0 by default. */
- public float getBoost() { return boost; }
-
- /** Prints a query to a string, with 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). */
- abstract public String toString(String field);
+ /**
+ * Prints a query to a string, with field
as the default field
+ * for terms.
+ *
The representation used is one that is readable by + * {@link org.apache.lucene.queryParser.QueryParser QueryParser} + * (although, if the query was created by the parser, the printed + * representation may not be exactly what was parsed). + */ + abstract public String toString(String field); }