Details
-
Improvement
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
7.4, 8.0
Description
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).
Attachments
Attachments
Issue Links
- duplicates
-
SOLR-8146 Allowing SolrJ CloudSolrClient to have preferred replica for query/read
- Resolved
-
SOLR-5501 Ability to work with cold replicas
- Resolved
- relates to
-
SOLR-8146 Allowing SolrJ CloudSolrClient to have preferred replica for query/read
- Resolved
-
SOLR-14035 remove deprecated preferLocalShards references
- Closed