dont know if its the best solution but i have a field i facet on called type its either 0,1, combined with collapse.facet=before i just sum all the values of the facet field to get the total number found
if you dont have such a field u can always add a field with a single value --joe On Wed, May 12, 2010 at 10:41 AM, Sergey Shinderuk <sshinde...@gmail.com> wrote: > Hi, fellows! > > I use field collapsing to collapse near-duplicate documents based on > document fuzzy signature calculated at index time. > The problem is that, when field collapsing is enabled, in query > response numFound is equal to the number of rows requested. > > For instance, with solr example schema i can issue the following query > > http://localhost:8983/solr/select?q=*:*&rows=3&collapse.field=manu_exact > > In response i get collapse_counts together with ordinary result list, > but numFound equals 3. > As far as I understand, this is due to the way field collapsing works. > > I want to show the total number of hits to the user and provide a > pagination through the results. > > Any ideas? > > Regards, > Sergey Shinderuk >