In elastic search version 7.7, multiple _types in the index is removed,
Now If we want to query across multiple index, we are doing in the following way.
/index1,index2/_search?q=type:tweet
In 7.7, what is the best way to query from multiple indexes using Transport Java API?
Edited :
1) Say I have two indexes, "user" and "tweet" I want to search both the index - user and tweet like below
If I want to query the "user" index on the field as {"username" = "Opster"}
and in "tweet" index on the field as {"data" = "some_text"}
Is this possible?
2) I understand, each index is a separate partition in elastic search but How does the search across indexes work internally in elastic search?
Thanks,
Harry
解决方案
I think the below