Two indices documents as below:
class First(Document):
class Index:
name = 'first'
case_id = Keyword()
name = Text()
class Second(Document):
class Index:
name = 'second'
case_id = Keyword()
status = Text()
I just want to execute a query like below in SQL format
select * from first as f, second as s where s.case_id = f.case_id or s.status = 'xyz'
How can I do it using elastic search dsl query?