Author: yonik
Date: Sun Oct 18 23:00:23 2009
New Revision: 826548

URL: http://svn.apache.org/viewvc?rev=826548&view=rev
Log:
javadoc - add date boosting example to boost parser

Modified:
    lucene/solr/trunk/src/java/org/apache/solr/search/BoostQParserPlugin.java

Modified: 
lucene/solr/trunk/src/java/org/apache/solr/search/BoostQParserPlugin.java
URL: 
http://svn.apache.org/viewvc/lucene/solr/trunk/src/java/org/apache/solr/search/BoostQParserPlugin.java?rev=826548&r1=826547&r2=826548&view=diff
==============================================================================
--- lucene/solr/trunk/src/java/org/apache/solr/search/BoostQParserPlugin.java 
(original)
+++ lucene/solr/trunk/src/java/org/apache/solr/search/BoostQParserPlugin.java 
Sun Oct 18 23:00:23 2009
@@ -29,9 +29,12 @@
 /**
  * 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";


Reply via email to