I have a use case where for every query that is coming from the user to
elasticsearch (ES), I want to add another query on ES server side before ES
executes the query.
The reason I need to dynamically add this other query is for
enforcing data-level entitlements.
e.g. Let's say that I am storing Orders in one of my ES indexes. Each Order
has a vendorid associated with it.
When a user of my app submits a query for Orders, I want to make sure that
only those Orders are returned by ES search that belong to the vendorid of
e.g. the user may have submitted a query to show all orders where order
value >= $100. I want to append another query to this saying that only the
Orders that are associated with the vendor id of this user should be
How can I achieve this? In the servlet world we have the mechanism of
FILTERS. Is something similar available in ES?
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to email@example.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/a308903e-0653-4de6-a2f8-1747c94b006b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.