But when I query the my_indice index with that user, I get documents with site_id values that do not match the specified values in filter. The syntax of the filter seems ok, as I get the expected behaviour if I explicitely add the exact same filter to the query.
Interestingly, when I filter on a single site with a “term” query on a single site id, it works as expected and only return documents with that site id:
An update on this topic: actually the latter rule does not work either, my bad.
It seems like DLS filter rules are simply not applied to the query.
I am on a (very!) old version of both the plugin (1.18.2) and elasticsearch (6.7.1). For now I am stuck with elasticsearch 6.7.1, but I will try upgrade the plugin. What is the latest version supporting es 6.7.1 ?
As I said in my second message, I am on a very outdated version of the plugin (1.18.2) and I think I am facing an issue that has already been fixed in later versions.