lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tomás Fernández Löbbe (JIRA) <>
Subject [jira] [Commented] (SOLR-11982) Add support for shards.sort parameter
Date Thu, 08 Mar 2018 20:58:00 GMT


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

Thanks [~emaijala]. Code looks really good. I uploaded the latest patch and left some minor
comments there. One thing I'm not 100% yet is the pipe in the syntax. To me, pipe usually
means "OR", but in this case, that is not the case, the order of the elements in does affect
the output. Your code can also handle the comma separated clauses, so it seems like:
Is actually the same as 
What is the intention of including the pipe then?

> Add support for shards.sort parameter
> -------------------------------------
>                 Key: SOLR-11982
>                 URL:
>             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

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message