shard.preference for single shard queries

2019-12-05 Thread spanchal
Hi all, Thanks to SOLR-11982 we can now give solr parameter to sort replicas while giving results but ONLY for distributed queries as per documentation. May I know why this limitation? As my setup, I have 3 replicas(2 NRT, 1 PULL) of a single s

Sort using If function containing multiple conditions

2017-06-23 Thread spanchal
Hi all, I am trying to sort my results using a function query. sort=if(eq(FIELD1,1) AND eq(FIELD2,1),1,0) desc but this is giving error: "error":{ "metadata":[ "error-class","org.apache.solr.common.SolrException", "root-error-class","org.apache.solr.common.SolrException"], "ms