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
_______________________________________________
Ferret-talk mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/ferret-talk

Reply via email to