# Ferret result set returning maximum of 10 rows

**URL:** <https://www.ruby-forum.com/t/ferret-result-set-returning-maximum-of-10-rows/172387>\
**Category:** Ferret\
**Created:** [July 20, 2009, 11:12pm UTC](https://www.ruby-forum.com/t/ferret-result-set-returning-maximum-of-10-rows/172387 "2009-07-20T23:12:30Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![shaunp](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/35a633/32.png) [@shaunp](https://www.ruby-forum.com/u/shaunp)\
**Post date:** [July 20, 2009, 11:12pm UTC](https://www.ruby-forum.com/t/ferret-result-set-returning-maximum-of-10-rows/172387/1 "2009-07-20T23:12:30Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![shaunp](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/35a633/32.png) [@shaunp](https://www.ruby-forum.com/u/shaunp)\
**Post date:** [July 28, 2009, 12:13pm UTC](https://www.ruby-forum.com/t/ferret-result-set-returning-maximum-of-10-rows/172387/2 "2009-07-28T12:13:39Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![shaunp](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/35a633/32.png) [@shaunp](https://www.ruby-forum.com/u/shaunp)\
**Post date:** [July 28, 2009, 12:22pm UTC](https://www.ruby-forum.com/t/ferret-result-set-returning-maximum-of-10-rows/172387/3 "2009-07-28T12:22:24Z")

</div>

Hi,  
Its resolved.. I actually modified my model’s find\_by\_content’s  
results..now I returned it back and its working.

Santosh T. 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.
