PhaedrusTheGreek / transform_vis

Transform Visualization for Kibana
Apache License 2.0
44 stars 32 forks source link

Support multiple index queries #19

Open IIIEII opened 6 years ago

IIIEII commented 6 years ago

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.

PhaedrusTheGreek commented 6 years ago

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.

IIIEII commented 6 years ago

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.