Elasticsearch中的嵌套vs对象 [英] nested vs object in Elasticsearch
问题描述
有人可以解释一下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.
检查此链接以查看差异
这篇关于Elasticsearch中的嵌套vs对象的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!