-
Notifications
You must be signed in to change notification settings - Fork 368
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
Chewy::UnderivableType after upgrading to 7.0 #808
Comments
Hey @bordemof 👋 ! |
@rabotyaga Upgrading to 7.2 and changing to index_scope solved my issue thanks, but now it seems that some methods such as |
What do you use for pagination? |
@rabotyaga I just added Kaminari gem in order to get pagination working but total_count method doest not work, it gives the following error, visible its just a scoped query.
After the changes you suggested and upgrading to 7.2 this is the index definition
|
@bordemof Do you use/append
|
@rabotyaga You are most probably right, I assume that this should be present in all the queries that need a total result from now on. Its there any available example on how to include |
It's the opposite situation - since you're using ES version >= 7 and Chewy 7.2.2 this option is not needed, but the error
looks like ElasticSearch continues to return |
@bordemof Did you manage to solve this? I've got an email regarding a new comment, but it's now deleted, that's why I'm asking. |
Yes you were right, I was making some desperate tries looking to the solution people provided in other issues and I left a wrong config in one initializer. Now it works just by changing the index_scope thing and the pagination library @rabotyaga |
Great! Glad to hear! |
Actual behavior
After upgrading the chewy version to 7 started getting this error when I try to query I alway get this error,:
I dont have any mappings in the Index definition since its only a consumer class.
Thanks in advance
Version Information
The text was updated successfully, but these errors were encountered: