Forum: Ferret Ferret result set returning maximum of 10 rows

Posted by Shaun Perkinson (shaunp)
on 2009-07-20 23:12
I have just upgraded to acts_as_ferret-0.4.4 and am experiencing some
unexpected behaviour. Although the number of search results can be many
e.g.

@search_products = Product.find_with_ferret("query")

@search_products.total_size = 110

…if I iterate over the @search_results result set my collection never
exceeds 10. e.g. the code

for product in @search_products

will only iterate over 10 product items.

My model config hasn’t changed since I upgraded

class Product < ActiveRecord::Base
  acts_as_ferret :fields => [ 'part_number', 'display_name',
'description' ]
end

Have I missed something in the upgrade that is limiting my result set to
10?

Shaun
Posted by Santosh Turamari (santuhvr)
on 2009-07-28 12:13
 I am also facing same problem with AAF-0.4.4.. Please update if you 
find any solution.
Thanx

Shaun Perkinson wrote:
> I have just upgraded to acts_as_ferret-0.4.4 and am experiencing some
> unexpected behaviour. Although the number of search results can be many
> e.g.
> 
> @search_products = Product.find_with_ferret("query")
> 
> @search_products.total_size = 110
> 
> …if I iterate over the @search_results result set my collection never
> exceeds 10.
> 
> 
Posted by Santosh Turamari (santuhvr)
on 2009-07-28 12:22
Hi,
  Its resolved.. I actually modified my model's find_by_content's 
results..now I returned it back and its working.

Santosh Turamari wrote:
>  I am also facing same problem with AAF-0.4.4.. Please update if you 
> find any solution.
> Thanx
> 
> Shaun Perkinson wrote:
>> I have just upgraded to acts_as_ferret-0.4.4 and am experiencing some
>> unexpected behaviour. Although the number of search results can be many
>> e.g.
>> 
Please log in before posting. Registration is free and takes only a minute.
Existing account (Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
No account? Register here.