Possible to have specific Documents excluded from X-Pack Filtering?

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.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.