How to do a join in Elasticsearch — or at the Lucene level

后端 未结 2 1973
情歌与酒
情歌与酒 2021-02-08 17:04

What\'s the best way to do the equivalent of an SQL join in Elasticsearch?

I have an SQL setup with two large tables: Persons and Items. A Person can own many

2条回答
  •  别跟我提以往
    2021-02-08 17:57

    Take a look at my answer for: In Elasticsearch, can multiple top-level documents share a single nested document?

    This discusses the use of _parent mapping as a way to avoid the issue with needing to update every Item when a Person is updated.

提交回复
热议问题