On 9/6/06, David Balmain <[EMAIL PROTECTED]> wrote:
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) #...
Perfect, but I think it would be less confusing it you set :all as a default value for :limit.
BTW, Ferrect is quite faster than Lucene. I haven't checked all query types, but ones that I use most of the time are fast. Congrats!
--
Kent
---
http://www.datanoise.com
_______________________________________________ Ferret-talk mailing list Ferret-talk@rubyforge.org http://rubyforge.org/mailman/listinfo/ferret-talk