Re: Field Collapsing: How to estimate total number of hits

2010-05-13 Thread Sergey Shinderuk
Finally I get it working. It seems that latest SOLR-236-trunk.patch just have some bugs. I checked out an older revision of solr trunk - rev 899572 (dtd. 2010-01-15) from http://svn.apache.org/repos/asf/lucene/solr/trunk and applied SOLR-236.patch dtd. 2010-02-01. And collapsing works fine. I ge

Re: Field Collapsing: How to estimate total number of hits

2010-05-13 Thread Sergey Shinderuk
Joe, thanks for your answer. But it doesn't solve my problem. Below I gave a longer description of my problem. First of all, I checked out solr trunk revision 928303 with last change dtd. 2010-03-28. Then I applied the latest patch from SOLR-236 to get field collapsing component. After that I buil

Re: Field Collapsing: How to estimate total number of hits

2010-05-12 Thread Joe Calderon
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

Field Collapsing: How to estimate total number of hits

2010-05-12 Thread Sergey Shinderuk
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