Sounds like the interface level to achieve this is multiple indexes.

 Dennis Gearon


Signature Warning
----------------
It is always a good idea to learn from your own mistakes. It is usually a 
better 
idea to learn from others’ mistakes, so you do not have to make them yourself. 
from 'http://blogs.techrepublic.com.com/security/?p=4501&tag=nl.e036'


EARTH has a Right To Life,
otherwise we all die.



----- Original Message ----
From: Upayavira <u...@odoko.co.uk>
To: solr-user@lucene.apache.org
Sent: Sat, January 29, 2011 3:51:45 PM
Subject: Re: match count per shard and across shards

To my knowledge, the distributed search functionality is intended to be
transparent, thus no details deriving from it are exposed (e.g. what
docs come from which shard), so, no, I don't believe it to be possible.

The only way I know right now that you could achieve it is by two (sets
of) queries. One would be a distributed search across all shards, and
the other would be a single hit to every shard. To fake such a facet,
this second set of queries would only need to ask for totals, so it
could use a rows=0.

Otherwise you'd have to enhance the distributed indexing code to expose
some of this information in its response.

Upayavira

On Sat, 29 Jan 2011 03:48 -0800, "csj" <christiansonnejen...@gmail.com>
wrote:
> 
> Hi,
> 
> Is it possible to construct a Solr query that will return the total
> number
> of hits there across all shards, and at the same time getting the number
> of
> hits per shard?
> 
> I was thinking along the lines of a faceted search, but I'm not deep
> enough
> into Solr capabilities and query parameters to figure it out.
> 
> Regards,
> 
> Christian Sonne Jensen
> 
> -- 
> View this message in context:
>http://lucene.472066.n3.nabble.com/match-count-per-shard-and-across-shards-tp2369627p2369627.html
>l
> Sent from the Solr - User mailing list archive at Nabble.com.
> 
--- 
Enterprise Search Consultant at Sourcesense UK, 
Making Sense of Open Source

Reply via email to