Hello!
I tried to set up Document Level Security on my index, which has not only regular but also nested documents, but when I try a simple search request
_search?pretty=true&q=*
I get an error:
{ "error" : { "root_cause" : [ { "type" : "illegal_state_exception", "reason" : "Parent query must not match any docs besides parent filter. Combine them as must (+) and must-not (-) clauses to find a problem doc. docID=1" } ], "type" : "search_phase_execution_exception", "reason" : "all shards failed", "phase" : "query", "grouped" : true, "failed_shards" : [ { "shard" : 0, "index" : "my-index", "node" : "pWhrtIQPRdCWuw6hyeGCwQ", "reason" : { "type" : "illegal_state_exception", "reason" : "Parent query must not match any docs besides parent filter. Combine them as must (+) and must-not (-) clauses to find a problem doc. docID=1" } } ], "caused_by" : { "type" : "illegal_state_exception", "reason" : "Parent query must not match any docs besides parent filter. Combine them as must (+) and must-not (-) clauses to find a problem doc. docID=1", "caused_by" : { "type" : "illegal_state_exception", "reason" : "Parent query must not match any docs besides parent filter. Combine them as must (+) and must-not (-) clauses to find a problem doc. docID=1" } } }, "status" : 500 }
I tried it on different versions of Open Distro For Elasticsearch and OpenSearch and the error is still there.
Described the issue thoroughly on Github about 3 weeks ago, but see no reaction…
https://github.com/opensearch-project/security/issues/1187
Can you confirm the issue or tell me what I’m doing wrong?