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. -- Posted via http://www.ruby-forum.com/.
On 7/30/06, Ian Zabel <contact at ezabel.com> wrote:> 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.Hi Ian, Try;>> Comment.find_by_contents("ian", :num_docs => 100).sizeCheers, Dave
David Balmain wrote:> On 7/30/06, Ian Zabel <contact at ezabel.com> wrote: >> >> Anything I''m doing wrong here? >> >> Thanks! >> Ian. > > Hi Ian, > > Try; > >>> Comment.find_by_contents("ian", :num_docs => 100).size > > Cheers, > > DaveAh, ok. Got it. Thanks! Ian. -- Posted via http://www.ruby-forum.com/.