Is there a query similar to joins in Elasticsearch?

Hello.
I know its not efficient to use "JOIN" in Elasticsearch, but I need to use it.
I have to extract values by find same field of index A and index B.
there is an example below.

A/type1/1
{
"serial":"abc",
"member":"jack"
}

A/type1/2
{
"serial":"def",
"member":"jack"
}

B/type2/1
{
"serial":"abc",
"temp":1
}

B/type3/2
{
"serial":"abc",
"water":0
}

B/type2/3
{
"serial":"def",
"temp":10
}

I need to filter the value of the 'member' field of the A index to find the corresponding 'serial', and then I want to get the values ​​of the 'temp' and 'water' fields in the B index.
ex) filter:{"member":"jack"} ===> temp:1, water:0, temp:10

I wonder if I can get this result, and if so, how do i establish the data structure (index structure).

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.