On 9/6/06, Kent Sibilev <[EMAIL PROTECTED]> wrote:
> Yes. It seems to work correctly, but I've noticed that index.search_each
> doesn't return more that 10 documents. Is there an option to change it?

Yep, :limit. The documentation is wrong in 0.10.2. It will be
corrected in the next version.

    index.search_each(query, :limit => 20) #...

Or you can get all results like this;

    index.search_each(query, :limit => :all) #...

If you are paging through results, use :offset;

    index.search_each(query, :limit => 20, :offset => 40) #...

Cheers,
Dave
_______________________________________________
Ferret-talk mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/ferret-talk

Reply via email to