Searches limited to 10 results?

Hello all,

I’ve just recently gotten my ActiveRecord models indexed properly in my
Rails App. Woohoo! So I’ve started testing some searches.

Is there some limit to acts_as_ferret that only allows it to return 10
results? I’m searching for common terms in my data that I know return
many results, but I only ever get at most 10 results.

This is in a db with 350k rows:

Comment.find_by_contents(“ian”).size
=> 10

The following SQL returns 1359 rows:
SELECT count(*) FROM comments where comment like ‘% ian %’;

My comment model has this:

acts_as_ferret :fields => [ ‘comment’ ]

Anything I’m doing wrong here?

Thanks!
Ian.

On 7/30/06, Ian Z. [email protected] wrote:

Anything I’m doing wrong here?

Thanks!
Ian.

Hi Ian,

Try;

Comment.find_by_contents(“ian”, :num_docs => 100).size

Cheers,

Dave

David B. wrote:

On 7/30/06, Ian Z. [email protected] wrote:

Anything I’m doing wrong here?

Thanks!
Ian.

Hi Ian,

Try;

Comment.find_by_contents(“ian”, :num_docs => 100).size

Cheers,

Dave

Ah, ok. Got it.

Thanks!

Ian.