Le 30/08/2011 00:09, Lei Wang a écrit :
It's a bug. getNumGroups() should return 2. Fixed on https://github.com/sguo/bobo Thanks.
getNumHits will get the number of ALL hits(include those grouped together). Ok, but i can now get it with getNumGroups().
So regular facets show facets count based on all results too (and not grouped ones) ?
getNumGroups should return the count of grouped hits (one group counted as one group hits) But, be careful when you're using this, for performance reason, the numGroups is just an estimate, it's not an accurate number. so be careful if you're doing paging rely on this count. Ok, thanks for the warning.
I thinks i found another problem : BrowseHit#getDocid() returns lucene doc id as int but BrowseHit#getGroupValue() should also contains top result's lucene id, but is typed as String ? Regards. -- Éric Chatellier <chatellier@codelutin.com> Tel: 02.40.50.29.28 http://www.codelutin.com