开发者

ruby on rails ferret search:.only 10 records are getting from table

开发者 https://www.devze.com 2022-12-25 17:44 出处:网络
ruby on rails ferret search:.only 10 records are getting from table.For pagination i did it ,but only 10 records are getting even though there exists more records satisfying the search condition.if an

ruby on rails ferret search:.only 10 records are getting from table.For pagination i did it ,but only 10 records are getting even though there exists more records satisfying the search condition.if any of you know how to solve this,please reply. no limit is given.if it is not a ferret search all records are getting from table , and pagination is working

the code is:

@search_sd_ticket_result=ServiceDeskTicket.find_with_ferret(params[:sd_ticket][:servicedeskticket]).paginate :per_page =>5, :page=>p开发者_如何学运维arams[:page]


There will be default limit in your code. so it will return only 10 records at a time.please put your code here so that one could able to tell you what is the exact problem.

Do you use :limit=> 10 or :per_page => 10 somewhere in your code.

Ref link:- http://blog.zmok.net/articles/2006/10/18/full-text-search-in-ruby-on-rails-3-ferret

0

精彩评论

暂无评论...
验证码 换一张
取 消