Save a query and use it by the name

I have a query that is repeatedly used.
Is there a way such that I can save the entire query and refer it by using the name which I can give while storing?

I guess the script query can be somewhat useful for your case. You can find more details about it at below link.

https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-script-query.html

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