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/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.
检查此链接以查看差异
这篇关于Elasticsearch 中的嵌套 vs 对象的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!