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

Shawn Heisey commented on SOLR-11982:
-------------------------------------

bq. I think shards.sort is pretty consistent with the rest of the Solr 
parameters. facet.sort sorts facets, group.sort sorts groups

Those sort parameters affect the order of information in search results.  The 
one discussed here is unlikely in most situations to have any effect at all on 
the order of results.

If you're determined to use a sort parameter, I won't stand in your way.  I've 
said why I don't like it, and you're free to say that my worries are unfounded. 
 You might want to consider replica.sort instead of shards.sort, since it's 
actually replicas that are being sorted.

One more thing, I should create a new issue for this: We have a lot of 
inconsistency on multi-word parameter names.  Some of them have the parts 
separated by periods, some of them use camelCase.  We really should standardize 
on one style, and remove old parameters in 8.0.  I'm leaning towards the period 
separator, simply because if we can make parameter names case-insensitive, 
users are less likely to type parameters incorrectly.


> 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.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

Reply via email to