Securing elasticsearch queries

Is there any framework, proxy whatever that helps me encapsulate elasticsearch queries?
I have an elasticsearch index which has all my customers, but I would like to provide an api which has all the power(or a subset) off elasticsearch queries . I would like to protect against bad queries, queries which could break elasticsearch.
This API will be available on the internet.
Another use case is, if I change elasticsearch version maybe the query could change.

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