Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Does not work with full text search #17

Open
stabenfeldt opened this issue Dec 10, 2013 · 5 comments
Open

Does not work with full text search #17

stabenfeldt opened this issue Dec 10, 2013 · 5 comments

Comments

@stabenfeldt
Copy link

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

@lucasas
Copy link
Owner

lucasas commented Dec 12, 2013

Hi @stabenfeldt, I'm gonna investigate this on next weekend and returns to you. Thank you 👍

@stabenfeldt
Copy link
Author

Thanks, that great! :-)

@stabenfeldt
Copy link
Author

Hi @lucasas, any updates? :-)

@dylanbromby
Copy link

Any updates here?

@stabenfeldt
Copy link
Author

I started using ElasticSearch for full text search. It works out of the box. :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants