dsmiley commented on code in PR #3238: URL: https://github.com/apache/solr/pull/3238#discussion_r2001636812
########## solr/solrj/src/java/org/apache/solr/client/solrj/SolrRequest.java: ########## @@ -210,6 +236,16 @@ public boolean requiresCollection() { return false; } + /** + * Indicates if clients should make attempts to route this request to a shard leader, overriding + * typical client routing preferences for requests. Defaults to true. + * + * @see CloudSolrClient#isUpdatesToLeaders + */ + public boolean shouldSendToLeaders() { Review Comment: > If you feel strongly about the method being out of place on SolrRequest Very much so. [-1] to `ShardRequest.shouldSendToLeaders` since it's usage is actually only for updates; isn't generally controlling all requests (nor should it). We could just leave Solr as it is with regards to this boolean in `UpdateRequest` & `IsUpdateRequest`. Maybe there are other possible solutions. Maybe it doesn't need to exist if users will configure CloudSolrClient with the setting and not change it; not sure. -- 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