First of all, thank you for adding MultiSearch to 0.19. This feature
already improved performance of some of my code by 2.5 times.
Sometimes I need to run 4 different queries strait, and now I'm just
making one call to do this, and it takes 4ms instead of 10ms.
But in other cases, which I believe could be common for other people
as well, I need to get a result from a first query, get some value,
and put it as a parameter to a following query (or filter actually).
So I was thinking, is it possible to somehow expose values of a
previous query to the next one?
I'll give a real use case example:
I have doc type: User. I'd need to find a/few such document(s) and
based on ID of the document retrieve some other documents.
I don't know the IDs upfront, since users selected based on some fancy
criteria. What I do right now, is just making a call to ES to get the
users, and generate a search for other type which contains the UserId
as a field. To improve this part as well using MutlySearch, I'd need
to pass those IDs to my other query somehow.
Do you have any suggestions/ideas?