alessandrobenedetti commented on code in PR #2489:
URL: https://github.com/apache/solr/pull/2489#discussion_r1632229605


##########
solr/core/src/java/org/apache/solr/handler/component/QueryComponent.java:
##########
@@ -173,22 +175,51 @@ public void prepare(ResponseBuilder rb) throws 
IOException {
 
     // get it from the response builder to give a different component a chance
     // to set it.
-    String queryString = rb.getQueryString();
-    if (queryString == null) {
-      // this is the normal way it's set.
-      queryString = params.get(CommonParams.Q);
-      rb.setQueryString(queryString);
+    List<String> unparsedQueries;
+    rb.isCombined = params.getBool(CombinerParams.COMBINER, false);
+    if (rb.isCombinedSearch()) {
+      String[] queriesToCombineKeys = 
params.getParams(CombinerParams.COMBINER_KEYS);
+      unparsedQueries = new ArrayList<>(queriesToCombineKeys.length);
+      rb.queriesCombiningStrategy = QueriesCombiner.getImplementation(params);
+      for (String queryKey : queriesToCombineKeys) {
+        unparsedQueries.add(params.get(queryKey));
+      }
+    } else {
+      unparsedQueries = new ArrayList<>(1);

Review Comment:
   Done, coming in next commit



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