es多个index查询问题,能否可以像sql一样union返回数据呢?

举个例子:有2个index
index01 mapping有:city(keyword)
index02 mapping有:name(keyword)

相当于查询index01中 city=北京、查询index02中 name=小明

sql的话可以用union来关联两个表内容。来一次性返回,不知道elasticsearch有没有
类似这样的功能

https://blog.csdn.net/LJFPHP/article/details/89883634