Elasticsearch 中的嵌套 vs 对象 [英] nested vs object in Elasticsearch

查看:24
本文介绍了Elasticsearch 中的嵌套 vs 对象的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有人能解释一下 Elasticsearch 文档中对象"和嵌套"字段的区别吗?

Can someone explain what is a difference between "object" and "nested" fields in documents in Elasticsearch?

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

I know by default field is defined as object. I also know that I can access object field with a dot like this: my_field.name, my_field.title etc.

对象文档: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

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

but I still cant understand a difference...

推荐答案

你所说的对象"可能是 elasticsearch 中的内部对象".

What your are calling "object" is probably "inner object" in elasticsearch.

检查此链接以查看差异

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

这篇关于Elasticsearch 中的嵌套 vs 对象的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆