dsmiley commented on code in PR #4475:
URL: https://github.com/apache/solr/pull/4475#discussion_r3449786259


##########
solr/core/src/java/org/apache/solr/util/SolrPluginUtils.java:
##########
@@ -596,7 +596,9 @@ public static void setMinShouldMatch(BooleanQuery.Builder 
q, String spec, boolea
             optionalDismaxClauses++;
           }
         } else {
-          if (!(c.query() instanceof MatchNoDocsQuery)) optionalClauses++;
+          if (!(mmAutoRelax && (c.query() instanceof MatchNoDocsQuery))) {

Review Comment:
   I guessed wrong on mm.autoRelax -- see the docs: 
https://github.com/apache/solr/blob/9809766bd9fda66aa67992ab4036e00a15ea1adf/solr/solr-ref-guide/modules/query-guide/pages/edismax-query-parser.adoc#L54
  it's strictly for disjunctionmax and doesn't apply in another context.  I can 
also see that from its implementation now that I look at it longer.



-- 
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.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


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

Reply via email to