Elasticsearch 中的嵌套与对象

2024-04-30

有人可以解释 Elasticsearch 文档中“对象”和“嵌套”字段之间的区别吗?

我知道默认情况下字段被定义为对象。我还知道我可以用这样的点访问对象字段:my_field.name、my_field.title 等。

对象的文档:http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/mapping-object-type.html http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/mapping-object-type.html嵌套文档:http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/mapping-nested-type.html http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/mapping-nested-type.html

但我仍然无法理解其中的区别...


你所说的“对象”可能是elasticsearch中的“内部对象”。

检查此链接以查看差异

https://web.archive.org/web/20140810095505/http://www.elasticsearch.org/blog/managing-relations-inside-elasticsearch/ https://web.archive.org/web/20140810095505/http://www.elasticsearch.org/blog/managing-relations-inside-elasticsearch/

本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)

Elasticsearch 中的嵌套与对象 的相关文章

随机推荐