Elasticsearch doesn't support table joining. You'll need to denormalize your data one way or another, even it results in data duplication. That's the "downside" of NoSQL like ES.
Quoting the docs:
Performing full SQL-style joins in a distributed system like Elasticsearch is prohibitively expensive. Instead, Elasticsearch offers two forms of join which are designed to scale horizontally.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…