On Wed, Mar 01, 2006 at 06:50:46AM +0100, Adam Roth wrote:
[..]
> 1. Are all the "fields" of a model indexed? When I used that 
> acts_as_ferret code from the svn repository, I had to specify the 
> fields. And despite the problems, I was also getting results back.

You have to specify the fields when using the second code snippet from
the wiki, too. If no fields are specified, only the id and the class
name will be indexed.

> 2. Is there a way to limit the results that you get back? (IE, limit to 
> 10, or pass a limit/offset for paging).

I just added this to the svn version of the plugin. 
You can have a look at test/unit/content_test.rb from the demo project
(https://svn.jkraemer.net/svn/projects/ferret-demo/trunk/test/unit/content_test.rb)
 
for an example.

As the other issue concerning multiple indexes is now fixed, too, you 
could give the svn version another try. 

Regards,
Jens

-- 
webit! Gesellschaft für neue Medien mbH          www.webit.de
Dipl.-Wirtschaftsingenieur Jens Krämer       [EMAIL PROTECTED]
Schnorrstraße 76                         Tel +49 351 46766  0
D-01069 Dresden                          Fax +49 351 46766 66
_______________________________________________
Ferret-talk mailing list
[EMAIL PROTECTED]
http://rubyforge.org/mailman/listinfo/ferret-talk

Reply via email to