What's the difference between the 'field' and 'field.keyword' fields in Kibana?

后端 未结 3 1851
生来不讨喜
生来不讨喜 2021-02-07 09:29

When adding a filter in kibana all string fields have a entry and .keyword entry. What is the difference?

3条回答
  •  猫巷女王i
    2021-02-07 10:25

    In fact, it is not an Kibana issue, it's an ElasticSearch issue which make full-text and keyword search both conformable. The filed.keyword is for keyword search and aggregation, while the original field is used for full-text search.

    There is an official blog specialized for this: https://www.elastic.co/cn/blog/strings-are-dead-long-live-strings

    There is also a post on the official discuss board, here is the link for your reference: https://discuss.elastic.co/t/why-am-i-getting-keyword-for-my-feilds-in-index-pattern/137983

提交回复
热议问题