Brilliant. So obvious. Upayavira
On Sat, 29 Jan 2011 18:53 -0700, "Bob Sandiford" <bob.sandif...@sirsidynix.com> wrote: > Or - you could add a standard field to each shard, populate with a > distinct value for each shard, and facet on that field. Then look at the > facet counts of the value that corresponds to a shard, and, hey-presto, > you're done... > > Bob Sandiford | Lead Software Engineer | SirsiDynix > P: 800.288.8020 X6943 | bob.sandif...@sirsidynix.com > www.sirsidynix.com > > > > -----Original Message----- > > From: Upayavira [mailto:u...@odoko.co.uk] > > Sent: Saturday, January 29, 2011 6:52 PM > > To: solr-user@lucene.apache.org > > 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 > > > Sent from the Solr - User mailing list archive at Nabble.com. > > > > > --- > > Enterprise Search Consultant at Sourcesense UK, > > Making Sense of Open Source > > > > --- Enterprise Search Consultant at Sourcesense UK, Making Sense of Open Source