Is it possible to have certain documents to be excluded from X-Pack filtering?
For example, a user is assigned a role which filters documents containing a certain keyword. However, once in a while, a few documents containing that keyword are allowed to be accessed by the user.
Is it possible to exclude that few documents from being filtered by X-Pack for a particular user?
Document Level Security operates purely on the query that you provide in the role. You are only limited by what you can express using an Elasticsearch query.
If you have some documents that are "public" them you could use a bool query and a term filter for "tag":"public".
It really depends on how you want to.flag the documents that fall outside your regular query.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.