Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support multiple index queries #19

Open
IIIEII opened this issue Jul 5, 2018 · 2 comments
Open

Support multiple index queries #19

IIIEII opened this issue Jul 5, 2018 · 2 comments

Comments

@IIIEII
Copy link

IIIEII commented Jul 5, 2018

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
Copy link
Owner

PhaedrusTheGreek commented Jul 9, 2018

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
Copy link
Author

IIIEII commented Jul 12, 2018

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants