-
Notifications
You must be signed in to change notification settings - Fork 801
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
Problems with pagination in MultiModel Search #382
Comments
+1 |
It works with will_paginate Elasticsearch::Model.search(query, [AAA, BBB]).per_page(25).page(1).results |
@miguelespada Don't know from top of my head, we'll look into that. @miguelff, would you spare some time to look at the issue, please? |
Sure, I will look into as soon as I got some time. |
One question @miguelespada, does the Gemfile of your application declare |
Btw... I have |
Hi @miguelff, gem "kaminari" |
+1 |
@miguelespada , @miguelff module Elasticsearch
module Model
class Multimodel
def default_per_page
10
end
end
end
end |
Thanks for the feedback, I will tackle the issue as soon as I got some time. Before the end of the week. |
Working on this. |
thx! |
Waiting for @karmi's review |
Are you guys planning on releasing a version on rubygems with this patch? |
@rkrdo Absolutely, I'm processing issues on the In the Gemfile, I'd rather go with a specific commit -- master should be always safe in terms of not suddenly breaking compatibility or having bugs, but of course it might happen... |
@karmi Makes sense, I'll reference a specific commit until you guys have enough patches to release a new version for now, thanks! |
I try to use pagination with Kaminari in a MultiModel Search.
This is my call:
Elasticsearch::Model.search(query, [AAA, BBB]).page(1).results
This is the error:
Failure/Error: response = MultiModelSearch.search('xxx')
NoMethodError:
undefined method `default_per_page' for #Elasticsearch::Model::Multimodel:0x007ff9dbe4f520
Is pagination supported for multimodel?
The text was updated successfully, but these errors were encountered: