On Wed, Nov 4, 2009 at 12:04, Jerome
Velociter<jerome(a)xwiki.com> wrote:
Hi Sergiu, all
I see in the XWikiHibernateStore that #countDocuments do distinct
documents by language while #searchDocuments does not.
I would have expect both to have the same behavior, so that we can use
them safely using the same query as input (for example for pagination).
Is there a reason for originally doing "select count(*)" versus select
"count(distinct doc.fullName)" ?
It looks like a bug to me.
Yes, it's a bug. Should be fixed.