will_paginate_mongoid
will_paginate_mongoid copied to clipboard
Does not work with full text search
Hi,
I get _undefined method `paginate' for #<Mongoid::Contextual::TextSearch_ if I try to paginate a full text search.
@ads = Ad.text_search( params[:q] )
.paginate(:page => params[:page], :per_page => 10 )
It does however work nice if I don't do a search. E.g.:
Ad.paginate(:page => params[:page])
Any suggestions to how full text search and will paginate can play together?
Cheers, Martin
Hi @stabenfeldt, I'm gonna investigate this on next weekend and returns to you. Thank you :+1:
Thanks, that great! :-)
Hi @lucasas, any updates? :-)
Any updates here?
I started using ElasticSearch for full text search. It works out of the box. :)