简体   繁体   English

动态场弹性搜索的问题

[英]problem with dynamic field elastic search

i am running Packet-beat in my server. 我在服务器上运行Packet-beat。

i'm disabled dynamic field in index mapping . 我在索引映射中禁用了动态字段。 it mean if new data coming . 这意味着如果有新数据到来。 don't create new fields. 不要创建新字段。

in my mapping there is not extra field but when i send a request from postman for show records . 在我的映射中,没有多余的字段,但是当我向邮递员发送要求显示记录的请求时。 there is a new field in my result but i'm sure its not in my mapping. 结果中有一个新字段,但是我确定它不在我的映射中。

how is possible? 怎么可能?

I'm founding the answer. 我正在寻找答案。

in elasticsearch when set dynamic:false its mean: elasticsearch中将dynamic:false设置为dynamic:false其平均值为:

The dynamic setting controls whether new fields can be added dynamically or not. 动态设置控制是否可以动态添加新字段。 It accepts three settings: 它接受三种设置:

true : Newly detected fields are added to the mapping. true:将新检测到的字段添加到映射中。 (default) (默认)

false : Newly detected fields are ignored. false:新检测到的字段将被忽略。 These fields will not be indexed so will not be searchable but will still appear in the _source field of returned hits. 这些字段将不会被索引,因此将无法搜索,但仍会出现在返回的匹配的_source字段中。 These fields will not be added to the mapping, new fields must be added explicitly. 这些字段不会添加到映射中,必须显式添加新字段。

strict : If new fields are detected, an exception is thrown and the document is rejected. strict:如果检测到新字段,则会引发异常并拒绝文档。 New fields must be explicitly added to the mapping. 必须将新字段显式添加到映射中。

extra description in this link 链接中的额外说明

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM