Found it.  Add "[shard]" to your fl.

-Greg


On Tue, Aug 20, 2013 at 1:24 PM, Greg Preston
<gpres...@marinsoftware.com> wrote:
> I know I've done this in a search via the admin console, but I can't
> remember/find the exact syntax right now...
>
> -Greg
>
>
> On Tue, Aug 20, 2013 at 12:56 PM, AdamP <adamph...@gmail.com> wrote:
>> Hi,
>>
>> We have several shards which we're querying across using distributed search.
>> This initial search only returns basic information to the user.  When a user
>> requests more information about a document, we do a separate query using
>> only the uniqueID for that document.  The problem is, I don't know how to
>> tell which shard a document lives on which means I have to do another
>> distributed search instead of going directly to the shard with the data.  Is
>> there a way to get the shardID as part of the resultset?
>>
>> I've found this old ticket (https://issues.apache.org/jira/browse/SOLR-705),
>> but it's not clear what parameters you need to pass in to get the shardID.
>> From a quick glance at the code, I'm not sure these changes are present in
>> the current versions of Solr.
>>
>> We're currently on 4.3.0.
>>
>> Thanks
>>
>>
>>
>> --
>> View this message in context: 
>> http://lucene.472066.n3.nabble.com/Getting-the-shard-a-document-lives-on-in-resultset-tp4085731.html
>> Sent from the Solr - User mailing list archive at Nabble.com.

Reply via email to