Unfortunately the same query will be sent to all cores if you use the shards parameter to query multiple cores.

Is there some characteristic of the first core that is distinct from the second core so that you could OR the differences between the two?

-- Jack Krupansky

-----Original Message----- From: Avner Levy
Sent: Wednesday, May 21, 2014 9:56 AM
To: solr-user@lucene.apache.org
Subject: Distributed Search in Solr with different queries per shard

I have 2 cores.
One with active data and one with historical data (for documents which were removed from the active one). I want to run Distributed Search on both and get the unified result (as supported by Solr Distributed Search, I'm not using Solr Cloud).
My problem is that the query for each core is different.
Is there a way to specify different query per core and still let Solr to unify the query results?
For example:
Active data core query: select all green docs
History core query: select all green docs with year=2012
Is there a way to extend the distributed search handler to support such a scenario?
Thanks in advance,
 Avner
ยท One option is to send a unified query to both but then each core will work harder for no reason.

Reply via email to