Save a query and use it by the name


(Teddy) #1

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?


(Junaid) #2

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


(system) #3

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