transform_vis icon indicating copy to clipboard operation
transform_vis copied to clipboard

Support multiple index queries

Open IIIEII opened this issue 7 years ago • 2 comments

It would be nice to do several queries from different indexes. Just remove Index Pattern dropdown and place it into Query DSL field. For example:

{
  "query_1": { "index-pattern": "index1-*", ... query body ... },
  "query_2": { "index-pattern": "index2-*", ... query body ... }
}

And then use response.query_1... and response.query_2...

I can do pull request for this functionality if you OK with conception.

IIIEII avatar Jul 05 '18 12:07 IIIEII

I think that longer term, it would be interesting if Elasticsearch could initiate queries inside of a painless script, then process the results arbitrarily before returning them to the client. It seems that such a functionality could address this enhancement.

PhaedrusTheGreek avatar Jul 09 '18 18:07 PhaedrusTheGreek

I believe Elastic team could do it someday, but now we don't have it. So I'm going to fork it anyway and make a pull request for you. Let me know if you have some ideas how to do it better.

IIIEII avatar Jul 12 '18 05:07 IIIEII