Join like functionality for searching b/w multiple docs

Hi all,

I'm not even sure if it's possible in ES and I think it isn't but still
here it goes.

Lets suppose I've two docs A and B.

Doc A: Has fields A and X.
Doc B: Has fields B and X.

X is the field that has same value in both the docs.

Problem statement is, I only know A and have to get B with the help of X
(which is same for both docs)

Is that possible in Elasticsearch in one query or do I've to write two
queries?

--
Regards,
Abhijeet Rastogi (shadyabhi)

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Problem statement is, I only know A and have to get B with the help of
X (which is same for both docs)

Is that possible in Elasticsearch in one query or do I've to write two
queries?

You have to write two queries

clint

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.