Apache Solr open-source search software
javadoc - add date boosting example to boost parser
Yonik Seeleyc4169ad26d29
diff --git a/src/java/org/apache/solr/search/BoostQParserPlugin.java b/src/java/org/apache/solr/search/BoostQParserPlugin.javaindex 9baef10fe33..a87ce664943 100755--- a/src/java/org/apache/solr/search/BoostQParserPlugin.java+++ b/src/java/org/apache/solr/search/BoostQParserPlugin.java@@ -29,9 +29,12 @@ import org.apache.solr.search.function.ValueSource;/*** Create a boosted query from the input value. The main value is the query to be boosted.* <br>Other parameters: <code>b</code>, the function query to use as the boost.- * <br>Example: <code>{!boost b=log(popularity)}foo</code> creates a query "foo"+ * <p>Example: <code>{!boost b=log(popularity)}foo</code> creates a query "foo"* which is boosted (scores are multiplied) by the function query <code>log(popularity)</code>.* The query to be boosted may be of any type.+ *+ * <p>Example: <code>{!boost b=recip(ms(NOW,mydatefield),3.16e-11,1,1)}foo</code> creates a query "foo"+ * which is boosted by the date boosting function referenced in {@link org.apache.solr.search.function.ReciprocalFloatFunction}*/public class BoostQParserPlugin extends QParserPlugin {public static String NAME = "boost";