Hi, Also the collapsing feature doesn't give the count of number of records returned (grouped by a field value). It gives the count of the hits for the query. This is really not useful when it comes to pagination.
Is there a way, at least in collapsing, wherein I can get the count of actual records returned and not the hit count? On Mon, Jul 19, 2010 at 7:32 PM, kenf_nc <ken.fos...@realestate.com> wrote: > > Oh, okay. Got it now. Unfortunately I don't believe Solr supplies a total > count of matching facet values. One way to do this, although performance > may > suffer, is to set your limit to -1 and just get back everything, that will > give you the count. You may want to set mincount to 1 so you aren't > counting > facet values that aren't in your query, but that really depends on your > need. > > ...&facet.limit=-1&facet.mincount=1 > > adding that to any facet query will return all matching facet values. > Depending on how many unique values you have, this could be a lot. But it > will give you what you are looking for. Unless your data changes > frequently, > maybe you can call it once and cache the results for some period of time. > -- > View this message in context: > http://lucene.472066.n3.nabble.com/Finding-distinct-unique-IDs-in-documents-returned-by-fq-Urgent-Help-Req-tp971883p978548.html > Sent from the Solr - User mailing list archive at Nabble.com. >