I am trying to set up document-level security for my index. The documents
have fields which will be filtered on to enforce access permissions.
My question is: given a query, is it possible to set things up so that ES
will invoke a custom script filter on every clause in said query without
having to munge the query myself to insert the filter explicitly?
then, I would want my custom filter invoked (implicitly) on both term
queries above.
Is there an alternative to doing the above without preprocessing the query
and explicitly inserting my custom filter everywhere?
The last feature is new and I have yet to try it out.
Cheers,
Ivan
On Thu, May 29, 2014 at 11:09 AM, W Shaib wshaib@gmail.com wrote:
I am trying to set up document-level security for my index. The documents
have fields which will be filtered on to enforce access permissions.
My question is: given a query, is it possible to set things up so that ES
will invoke a custom script filter on every clause in said query without
having to munge the query myself to insert the filter explicitly?
then, I would want my custom filter invoked (implicitly) on both term
queries above.
Is there an alternative to doing the above without preprocessing the query
and explicitly inserting my custom filter everywhere?
Thanks for the quick reply. unless I am missing something, these
suggestions do not quite do what I need...
alias filters would not work since the filters associated with them are
static, whereas I would need a dynamic a filter (one with params, so each
query will include the specific values to filter for, depending on who is
querying)
not sure how templates work for this... an elaboration would be
appreciated.
On Thursday, 29 May 2014 14:16:39 UTC-4, Ivan Brusic wrote:
The last feature is new and I have yet to try it out.
Cheers,
Ivan
On Thu, May 29, 2014 at 11:09 AM, W Shaib <wsh...@gmail.com <javascript:>>wrote:
I am trying to set up document-level security for my index. The documents
have fields which will be filtered on to enforce access permissions.
My question is: given a query, is it possible to set things up so that ES
will invoke a custom script filter on every clause in said query without
having to munge the query myself to insert the filter explicitly?
then, I would want my custom filter invoked (implicitly) on both term
queries above.
Is there an alternative to doing the above without preprocessing the
query and explicitly inserting my custom filter everywhere?
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.