psalagnac commented on code in PR #1646: URL: https://github.com/apache/solr/pull/1646#discussion_r1200545455
########## solr/solrj/src/java/org/apache/solr/client/solrj/impl/CloudSolrClient.java: ########## @@ -1117,8 +1117,14 @@ protected NamedList<Object> sendRequest(SolrRequest<?> request, List<String> inp sortedReplicas.forEach( replica -> { if (seenNodes.add(replica.getNodeName())) { - theUrlList.add( - ZkCoreNodeProps.getCoreUrl(replica.getBaseUrl(), joinedInputCollections)); + if (inputCollections.size() == 1 && collectionNames.size() == 1) { + // If we have a single collection name (and not a alias to multiple collection), + // send the query directly to a replica of this collection. + theUrlList.add(replica.getCoreUrl()); + } else { + theUrlList.add( + ZkCoreNodeProps.getCoreUrl(replica.getBaseUrl(), joinedInputCollections)); Review Comment: @sonatype-lift ignore -- 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