That would be two separate queries, one specifying a single core, and the other specifying all cores.

Or, if that one ID is unique to that core, just combine the two queries as an OR.

If not unique, try to find some field query that would make it unique. If even that is not unique, then you do need separate queries.

-- Jack Krupansky

-----Original Message----- From: Smitha Rajiv
Sent: Thursday, July 31, 2014 1:31 AM
To: solr-user@lucene.apache.org
Subject: Querying from solr shards

Hi All,

Currently i am using solr legacy distributed configuration (not solr cloud,
single solr server with multiple shards).

I need to write a query to get one particular document (id specific) from
one shard and all documents from other shards.

Can you please help me to get this query right.

Thanks & Regards,
Smitha S

Reply via email to