[
https://issues.apache.org/jira/browse/SOLR-11982?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16392197#comment-16392197
]
Shawn Heisey commented on SOLR-11982:
-------------------------------------
When I saw the review request on the mailing list for this issue, my thought
was "shards.sort? what does sorting shards mean?" This is the precise
reaction that the average user is going to have when they see the parameter
name.
I would very much prefer to have preferReplicaTypes and preferLocalShards.
These parameter names are straightforward and describe exactly what they do in
a very compact way. Regarding what to do when both are present: I think
preferReplicaTypes should take priority. Look for the preferred replica type
(like TLOG) and if it is found, then decide whether there are any appropriate
replicas of that type locally. Perhaps the preferLocalShards parameter could
accept true, false, and always as values -- with the always value overriding
that behavior.
Using a weird parameter name can be justified in cases where the concepts
related to that parameter are complex. It should make perfect sense to an
average user once they have become familiar with the concepts, though.
Preferring certain replica types is not a difficult concept, so the parameter
name(s) should definitely be straightforward and nearly self-documenting.
> 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.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.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).
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]