mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-03-24 17:09:48 +00:00
The SecurityIndexSearcherWrapper was calling toQuery instead of toFilter, which in certain cases can trip the max clause count check for a boolean query. The same query works fine as a filter and that is what users would expect when using the query for document level security. Original commit: elastic/x-pack-elasticsearch@40330636ec