You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#227 added support for _version and _version_type in bulk requests. This works great over REST, but the version type is ignored in native.
This happens because common.bulk/index-operation uses keys of the form _version_type, but native.conversion/->action-requests wants the key version-type (which, if passed in, would be stripped by common.bulk).
Is it possible that this function should be slightly different?
It looks like it should ensure the compatibility of the keys that are passed to ->action-requests (see here), but it is only removing the leading underscore. So the :_version_type key is transformed to :version_type instead of :version-type. I tried looking for more insight in the commit messages but it didn't help.
I think it is also fair to argue that clojurewerkz.elastisch.common.bulk should not take care of these keys, since they are different in each client.
@michaelklishin what do you think? I am open to submit a PR with the required changes.
@quimrstorres if you have a test case that demonstrates the issue to go with it, feel free to do it. Af first glance your findings seem reasonable. Thank you.
#227 added support for
_version
and_version_type
in bulk requests. This works great over REST, but the version type is ignored in native.This happens because
common.bulk/index-operation
uses keys of the form_version_type
, butnative.conversion/->action-requests
wants the keyversion-type
(which, if passed in, would be stripped bycommon.bulk
).Not sure the best solution - maybe
->action-requests
needs to be more permissive and allow the keyversion_type
as well asversion-type
?The text was updated successfully, but these errors were encountered: