filebeat 的 elasticsearch 中的`_type` 和`type` 有什么区别?
What's the difference between `_type` and `type` in elasticsearch from filebeat?
filebeat 的 elasticsearch 中 _type
和 type
有什么区别?
从查询中查找数据:
看起来,_type
是来自索引的文档类型,而 type
只是我的源数据的一个字段。如果是,为什么 filebeat 将 document_type
设置为 type
而不是 _type
?
我假设这是 5.5.0,对吧?
这是为 Elasticsearch 6.0 做的准备,它将只使用一个名为 doc
的索引 _type
(尽管这可以通过配置标志更改); Elasticsearch 7.0 将彻底移除 _type
。因此该值已移至自定义 type
字段。
此更改的拉取请求是 https://github.com/elastic/beats/pull/3757,它也链接到相关的 Elasticsearch 问题。
filebeat 的 elasticsearch 中 _type
和 type
有什么区别?
从查询中查找数据:
看起来,_type
是来自索引的文档类型,而 type
只是我的源数据的一个字段。如果是,为什么 filebeat 将 document_type
设置为 type
而不是 _type
?
我假设这是 5.5.0,对吧?
这是为 Elasticsearch 6.0 做的准备,它将只使用一个名为 doc
的索引 _type
(尽管这可以通过配置标志更改); Elasticsearch 7.0 将彻底移除 _type
。因此该值已移至自定义 type
字段。
此更改的拉取请求是 https://github.com/elastic/beats/pull/3757,它也链接到相关的 Elasticsearch 问题。