I am looking at implementing role based access control using X-Pack on a document level. From the documentation, a role could be defined for my document like this:
For the query part, is it possible to extract the attributes "sub-tags" and "year" and place them in a template like Year_Game so that the query becomes like this:
I'm not 100% sure I provided the example you want though - I'm a little confused about your example and what you want to template.
Alternatively, you can implement custom roles providers, so if you wanted to, you could just do all this in code, or pull your role definitions from an external system.
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.