-
Notifications
You must be signed in to change notification settings - Fork 370
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Importing to amazon elastic search service #271
Comments
Well, it is quite hardcoded here: chewy/lib/chewy/type/import.rb Line 22 in ef0fab4
But you may send a patch of de-hardcoding :) Like, in case of refresh: false don't add anything.
|
I didn't expect such a behavior, Amazon engineers are strange guys, ES itself doesn't have such a strict rules |
Hy @drnluz , any updates on this issue? |
Had the same issue with AWS. Fixed with explicitly specifying Content-Type header in production:
host: 'some-host.es.amazonaws.com:80'
transport_options:
headers:
content_type: 'application/json' |
Perfect, thanks for the solution! |
# for free
to join this conversation on GitHub.
Already have an account?
# to comment
Hello. I'm trying to import a model to the amazon elasticsearch service but I'm getting the following error:
Elasticsearch::Transport::Transport::Errors::Forbidden: [403] {"message":"When Content-Type:application/x-www-form-urlencoded, URL cannot include query-string parameters (after '?'): '/all/factory/_bulk?refresh=false'"}
Digging a little I found that amazon ES service does not accept query parameters.
Is there a way to run
MyIndex.reset!
without sendingrefresh
as a query parameter?The text was updated successfully, but these errors were encountered: