[ https://issues.apache.org/jira/browse/SOLR-11982?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16392615#comment-16392615 ]
Ere Maijala commented on SOLR-11982: ------------------------------------ I attached SOLR-11982-preferReplicaTypes.patch, which is a refined version of the original patch to add preferReplicaTypes parameter. This is a smaller change to the current functionality and does not require deprecating preferLocalShards, but then it doesn't allow as much flexibility as the shards.sort version. Both version fulfill my needs, but I'd really appreciate a clear decision which way is to be preferred. [~tomasflobbe], I'll wait for the decision before addressing the latest review. You're right in that this doesn't work for single-shard collections but I don't think it needs to since the client, whatever it is, has full control over where to send the query. > Add support for shards.sort parameter > ------------------------------------- > > Key: SOLR-11982 > URL: https://issues.apache.org/jira/browse/SOLR-11982 > Project: Solr > Issue Type: Improvement > Security Level: Public(Default Security Level. Issues are Public) > Components: SolrCloud > Affects Versions: 7.3, master (8.0) > Reporter: Ere Maijala > Priority: Minor > Labels: patch-available, patch-with-test > Attachments: SOLR-11982-preferReplicaTypes.patch, SOLR-11982.patch, > SOLR-11982.patch, SOLR-11982.patch, SOLR-11982.patch > > > 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.sort=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). -- This message was sent by Atlassian JIRA (v7.6.3#76005) --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org