[ 
https://issues.apache.org/jira/browse/SOLR-11982?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16500920#comment-16500920
 ] 

Tomás Fernández Löbbe commented on SOLR-11982:
----------------------------------------------

bq. unusual or impossible preferences should just fall back to random when they 
cannot be achieved, it shouldn't stop Solr operation
This is the way it will work right now. The value of the {{shards.preference}} 
is used to sort the (previously shuffled) list of replicas that can respond to 
a query, but it doesn't remove any replica from that list. If, for example, you 
say: {{shards.preference=PULL}}, and there are no {{PULL}} replicas in the 
shard, any non pull replica will be queried. The work for filtering replicas 
will be done in SOLR-10880 (in my TODOs list)

> Add support for indicating preferred replica types for queries
> --------------------------------------------------------------
>
>                 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.4, master (8.0)
>            Reporter: Ere Maijala
>            Assignee: Tomás Fernández Löbbe
>            Priority: Minor
>              Labels: patch-available, patch-with-test
>             Fix For: 7.4, master (8.0)
>
>         Attachments: SOLR-11982-preferReplicaTypes.patch, 
> SOLR-11982-preferReplicaTypes.patch, SOLR-11982.patch, SOLR-11982.patch, 
> SOLR-11982.patch, SOLR-11982.patch, SOLR-11982.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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to