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

Documentation needed for Searching across multiple models with Searchkick that all needed to be paginated together #319

Closed
2 of 3 tasks
leemcalilly opened this issue Jun 25, 2021 · 1 comment

Comments

@leemcalilly
Copy link

Documentation Issue

  • I researched through the documentation, the pagy issues and a known Search Engine, and there is no reference/report/post that solves this problem
    • The documentation is missing
    • I am providing the link of the documentation page/document displaying the issue

Description

I was blocked on this issue until someone on Stackoverflow showed me that I needed to add Searchkick.extend Pagy::Searchkick to my Pagy initializer in order to search across multiple models and paginate them all together with Pagy. The solution and detailed description of my code can be found here:

https://stackoverflow.com/questions/68041398/how-to-paginate-multiple-models-with-the-pagy-gem-in-rails/68124989#68124989

Once I added Searchkick.extend Pagy::Searchkick to initializers/pagy.rb everything with Pagy and Searchkick worked as expected and described in the other documentation.
...

Thank you!

@ddnexus
Copy link
Owner

ddnexus commented Jun 25, 2021

Sorry you got blocked on that. If you need fast answers (0-6 hours reply) you can also use the Gitter Chat Support.

Thank you for your report! I will fix it right away.

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

No branches or pull requests

2 participants