alessandrobenedetti commented on a change in pull request #357: [SOLR-12238] 
Synonym Queries boost
URL: https://github.com/apache/lucene-solr/pull/357#discussion_r376980226
 
 

 ##########
 File path: lucene/core/src/java/org/apache/lucene/util/QueryBuilder.java
 ##########
 @@ -63,6 +66,25 @@
   protected boolean enableGraphQueries = true;
   protected boolean autoGenerateMultiTermSynonymsPhraseQuery = false;
 
+  /**
+   * Wraps a term and boost
+   */
+  public static class TermAndBoost {
+    private static final float DEFAULT_BOOST = 1.0f;
 
 Review comment:
   I agree, coming in the upcoming commit.
   Furthermore in a lot of places in Lucene and Solr 1.0f is used when it is 
actually the DEFAULT_BOOST, I won't change that, it's not the scope of this 
issue but it would be nice to add a ticket to do that.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org
For additional commands, e-mail: issues-h...@lucene.apache.org

Reply via email to