Total_hits and conditions

Hi. I’m running 0.11.4. The problem I’m having, appears to have been
solved
before according to various posts I googled up, but possibly the fix got
removed
from 0.11.3 to 0.11.4?

re = Entry.multi_search(‘service’, [Ticket], options, {})
re.size
620
re.total_hits
620

Now add conditions:

re = Entry.multi_search(‘service’, [Ticket], options, {:conditions =>
“account_id=#{u.account_id}”})
re.size
5
re.total_hits
620

Looks broken to me.

Br,

Morten

Hi,

most probably this is a bug in acts_as_ferret, not of Ferret itself.

Which version of aaf are you using? Could you please try aaf trunk?

Cheers,
Jens

On Sun, Dec 02, 2007 at 09:22:25PM +0000, Morten wrote:


Jens Krämer
webit! Gesellschaft für neue Medien mbH
Schnorrstraße 76 | 01069 Dresden
Telefon +49 351 46766-0 | Telefax +49 351 46766-66
[email protected] | www.webit.de

Amtsgericht Dresden | HRB 15422
GF Sven Haubold, Hagen Malessa