ElasticSearch: Using output of one query as input to another ElasticSearch: Using output of one query as input to another elasticsearch elasticsearch