Hi Jens,

I don't have that method, could it have something to do with the fact 
that Im using

Ferret::MixinActs::ARFerret

Do I need to upgrade or can I just add that function?

Aryk

Jens Kraemer wrote:
> On Wed, May 16, 2007 at 02:17:44AM +0200, Aryk Grosz wrote:
>> Hey guys,
>> 
>> I know I can run search(q).total_hits, but if I try to put :limit=>0 it
>> gives me an error. I don't want it actually query any of the results, I
>> just want it to tell me how many total_hits I would have if I wanted to
>> search it.
>> 
>> How can I do this?
> 
> Model.total_hits(query)
> 
> Jens
> 
> --
> 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


-- 
Posted via http://www.ruby-forum.com/.
_______________________________________________
Ferret-talk mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/ferret-talk

Reply via email to