Importing Bucket Filters


I am new to Elasticsearch and i've been playing around with the aggregation within the visualise section. I am trying to aggregate off key indicators (i have around 50 - 60) and its going to be something i want to repeat... Right now i have the metrics sorted to aggregate on certain fields and i have a bucket aggregation set to filters with a new filter for each key indicator... but adding them manually is a long process, is there a way to import them to the search?


maybe you could reuse the search template feature for this kind of use-case?


Can you just add the arguments into a POST?

"aggs": {
"2": {
"filters": {
"filters": {
"": {
"query": {
"query_string": {
"query": "",
"analyze_wildcard": true