mkhludnev commented on code in PR #1324:
URL: https://github.com/apache/solr/pull/1324#discussion_r1096982867


##########
solr/core/src/java/org/apache/solr/search/ReRankQParserPlugin.java:
##########
@@ -72,25 +74,33 @@ public Query parse() throws SyntaxError {
 
       double reRankWeight = localParams.getDouble(RERANK_WEIGHT, 
RERANK_WEIGHT_DEFAULT);
 
-      return new ReRankQuery(reRankQuery, reRankDocs, reRankWeight);
+      String reRankOperator = localParams.get(RERANK_OPERATOR, "add");
+
+      return new ReRankQuery(reRankQuery, reRankDocs, reRankWeight, 
reRankOperator);
     }
   }
 
   private static final class ReRankQueryRescorer extends QueryRescorer {
 
     final double reRankWeight;
+    final String reRankOperator;

Review Comment:
   enums will also help later to introduce other ops like min, max, etc 



-- 
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: issues-unsubscr...@solr.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


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

Reply via email to