Hello Solr Devs, I am a developer using Solr and wanted to have some opinion on a performance change request.
Currently, I see that code flow for a query in SolrCloud is as follows: For distributed query: SolrCore -> SearchHandler.handleRequestBody() -> HttpShardHandler.submit() For non-distributed query: SolrCore -> SearchHandler.handleRequestBody() -> QueryComponent.process() For a distributed query, the request is always sent to all the shards even if the originating SolrCore (handling the original distributed query) is a replica of one of the shards. If the original Solr-Core can check itself before sending http requests for any shard, we can probably save some network hopping and gain some performance. If this idea seems feasible, I can submit a JIRA ticket and work on it. I am planning to change SearchHandler.handleRequestBody() or HttpShardHandler.submit() Thanks SG
