[
https://issues.apache.org/jira/browse/SOLR-11982?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16425820#comment-16425820
]
Houston Putman commented on SOLR-11982:
---------------------------------------
Just my two cents, but I think that {{shards.preference}} is a lot clearer than
{{shards.sort}} for this kind of option. {{sort}} is a defined parameter in
Solr and I think using it in this context would muddy the term else where in
Solr as well as add confusion here. This is a new type of behavior for Solr and
therefore requires a new parameter name. I think {{shards.preference}} would
work well in differentiating it as a new feature.
{{shards.routing}} or {{shards.route}} may be even clearer names as they
explicitly show that they are options for routing a request. The words
{{preference}} and {{sort}} don't inherently relate to routing, though
{{preference}} does come closer.
> 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
> Priority: Minor
> Labels: patch-available, patch-with-test
> 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
>
>
> 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]