<br><br><div><span class="gmail_quote">On 9/6/06, <b class="gmail_sendername">David Balmain</b> <<a href="mailto:dbalmain.ml@gmail.com">dbalmain.ml@gmail.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
On 9/6/06, Kent Sibilev <<a href="mailto:ksibilev@yahoo.com">ksibilev@yahoo.com</a>> wrote:<br>> Yes. It seems to work correctly, but I've noticed that index.search_each<br>> doesn't return more that 10 documents. Is there an option to change it?
<br><br>Yep, :limit. The documentation is wrong in 0.10.2. It will be<br>corrected in the next version.<br><br> index.search_each(query, :limit => 20) #...<br><br>Or you can get all results like this;<br><br> index.search_each
(query, :limit => :all) #...<br><br>If you are paging through results, use :offset;<br><br> index.search_each(query, :limit => 20, :offset => 40) #...<br><br></blockquote></div><br>Perfect, but I think it would be less confusing it you set :all as a default value for :limit.
<br><br>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!<br clear="all"><br>-- <br>Kent<br>---<br><a href="http://www.datanoise.com">http://www.datanoise.com
</a>