想要实现的效果
想在ElasticSearch中通过dsl实现与下面sql语句相等的效果:
select user_name,user_code from table1 where user_name like '张%'
union all
select usrname as user_name,usrcode as user_code from table2 where usrcode like '10%'
最终的结果就是把不同索引的查询结果合并到一块,各索引中的字段名可能有不同。
求指点,谢谢!

