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
We would like to restrict specific actions for Elastic committers based on the type of operation (add, update, or delete).
We have three committers, and we're aiming to implement the following restrictions:
One committer should be restricted to only handle English documents based on language field containing value en.
Another committer should be restricted to handle only French documents based on language field containing value fr.
The third committer should be restricted to perform delete operations only.
However, we're unsure if this can be achieved with the current configuration. At the moment, using the restrictTo option based on a field causes delete commands to be rejected, as the field doesn't exist in the document being deleted.
If this is not yet supported, would it be possible to open an enhancement request?
Any guidance on how to achieve this setup would be greatly appreciated.
Thank you.
Stephen Jacob
The text was updated successfully, but these errors were encountered:
That could be useful indeed. I am marking it as a feature request. As a workaround for now, if you know a given field is always there except when deleted, you can add extra committers that are restricted on such a field being empty. You can likely do so by matching the regular expression $^ and making sure matchEmpty is true.
Hi,
We would like to restrict specific actions for Elastic committers based on the type of operation (add, update, or delete).
We have three committers, and we're aiming to implement the following restrictions:
However, we're unsure if this can be achieved with the current configuration. At the moment, using the restrictTo option based on a field causes delete commands to be rejected, as the field doesn't exist in the document being deleted.
If this is not yet supported, would it be possible to open an enhancement request?
Any guidance on how to achieve this setup would be greatly appreciated.
Thank you.
Stephen Jacob
The text was updated successfully, but these errors were encountered: