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

ActiveRecord adapter ignores query parameters and conditions in Rails 6.1 aka Elasticsearch::Transport::Transport::Errors::RequestEntityTooLarge error #1012

Open
robmathews opened this issue Oct 14, 2021 · 0 comments
Labels

Comments

@robmathews
Copy link

The ActiveRelation integration is broken, so that instead of updating only the specified records, it is attempting to update all records, ignoring the conditions on the relation.

ie, if you do something like:

objs = Article.where(id: 1)
objs.__elasticsearch__.import(refresh: true)

It will attempt to generate an index update for all articles in the database, not just the one, and this results in a Elasticsearch::Transport::Transport::Errors::RequestEntityTooLarge error.

@stale stale bot added the stale label Apr 17, 2022
@picandocodigo picandocodigo added bug and removed stale labels Apr 18, 2022
@elastic elastic deleted a comment from stale bot Apr 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants