----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/65942/ -----------------------------------------------------------
(Updated March 8, 2018, 5:38 p.m.) 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 (updated) ----- solr/CHANGES.txt c1b5161c9c solr/core/src/java/org/apache/solr/handler/component/HttpShardHandlerFactory.java 6bfd36af94 solr/core/src/test/org/apache/solr/handler/component/HttpShardHandlerFactoryTest.java PRE-CREATION 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/2/ Changes: https://reviews.apache.org/r/65942/diff/1-2/ Testing ------- Thanks, Tomás Fernández Löbbe
