Is there a reason why acts_as_ferret will only return at most 10
results? Can
I change this somehow?
Thanks!
Daniel
Is there a reason why acts_as_ferret will only return at most 10
results? Can
I change this somehow?
Thanks!
Daniel
no, is not returning only 10, maybe your pagination does?
I created 20 records with “test” for each field, and this is what I got:
AnnotatedLink.find_by_contents(‘test’).size
=> 10
Just found the answer - I needed to have
AnnotatedLink.find_by_contents(‘test’, :limit => :all)
Thanks!
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs