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

查看:106
本文介绍了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/zh-CN/elasticsearch/reference/current/mapping-object -type.html
嵌套文档: http://www.elasticsearch.org/guide/zh-CN/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.arch ive.org/web/20140810095505/http://www.elasticsearch.org/blog/managing-relations-inside-elasticsearch/

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

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