----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/65942/ -----------------------------------------------------------
Review request for lucene. Repository: lucene-solr Description ------- Creating this Review request on Ere Maijala's patch. See SOLR-11982 for previous discussion. It would be nice to have the possibility to easily sort the shards in the preferred order e.g. by replica type. The attached patch adds support for shards.sort parameter that allows one to sort e.g. PULL and TLOG replicas first with ``shards.sor=replicaType:PULL|TLOG``(which would mean that NRT replicas wouldn't be hit with queries unless they're the only ones available) and/or to sort by replica location (like preferLocalShards=true but more versatile). Diffs ----- solr/CHANGES.txt 99e61f1d16 solr/core/src/java/org/apache/solr/handler/component/HttpShardHandlerFactory.java 6bfd36af94 solr/solr-ref-guide/src/distributed-requests.adoc f5aaff469e solr/solrj/src/java/org/apache/solr/common/params/ShardParams.java cbc33f41f4 solr/solrj/src/test/org/apache/solr/client/solrj/impl/CloudSolrClientTest.java 9539846f88 Diff: https://reviews.apache.org/r/65942/diff/1/ Testing ------- Thanks, Tomás Fernández Löbbe
