# Total\_hits and conditions

**URL:** <https://www.ruby-forum.com/t/total-hits-and-conditions/121918>\
**Category:** Ferret\
**Created:** [December 2, 2007, 10:23pm UTC](https://www.ruby-forum.com/t/total-hits-and-conditions/121918 "2007-12-02T22:23:27Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![morten](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/cdc98d/32.png) [@morten](https://www.ruby-forum.com/u/morten)\
**Post date:** [December 2, 2007, 10:23pm UTC](https://www.ruby-forum.com/t/total-hits-and-conditions/121918/1 "2007-12-02T22:23:27Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![morten](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/cdc98d/32.png) [@morten](https://www.ruby-forum.com/u/morten)\
**Post date:** [December 3, 2007, 10:07am UTC](https://www.ruby-forum.com/t/total-hits-and-conditions/121918/2 "2007-12-03T10:07:41Z")

</div>

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  
removed\_email\_address@domain.invalid | [www.webit.de](http://www.webit.de)

Amtsgericht Dresden | HRB 15422  
GF Sven Haubold, Hagen Malessa
