Github user arjenm commented on the pull request:

    
https://github.com/apache/lucene-solr/commit/962313b83ba9c69379e1f84dffc881a361713ce9#commitcomment-26095567
  
    In solr/core/src/java/org/apache/solr/util/SolrPluginUtils.java:
    In solr/core/src/java/org/apache/solr/util/SolrPluginUtils.java on line 731:
    Unfortunately, since I don't have the lucene-solr project checked out/set 
up, submitting a proper patch is a bit too large of an effort. Luckily the 
change I made was really small, so hopefully you can do it? :)
    
    I can live with missing the chance of the honor of submitting a patch to 
Lucene ;)
    
    In my first comment, I've mentioned the fix, but here it is in a bit more 
detail:
    Replace this line in 
SolrPluginUtils#flattenBooleanQuery(BooleanQuery.Builder, BooleanQuery, float)
    
https://github.com/apache/lucene-solr/blob/187849f9b67ba6b7e6c2d06cc25359bf53b2ce9f/solr/core/src/java/org/apache/solr/util/SolrPluginUtils.java#L747
    
    With the properly formatted version of this:
    `if (boost != 1f) {
       to.add(new BoostQuery(cq, boost), clause.getOccur());
    } else {
      to.add(clause);
    }`



---

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to