Elasticsarch:原始字段和关键字字段之间的区别

时间:2019-09-14 12:25:20

标签: elasticsearch logstash

在Elasticsearch 7中,请考虑以下三个映射:

        "properties" : {
             "actors" : {
               "type" : "text",
               "fields" : {"keyword" : {"type" : "keyword","ignore_above" : 25}}
             },

  "properties" : {
             "actors" : {
               "type" : "text",
               "fields" : {"raw" : {"type" : "keyword","ignore_above" : 25}}
             },

  "properties" : {
             "actors" : {
               "type" : "text",
               "fields" : {"custom_field" : {"type" : "keyword","ignore_above" : 25}}
             },

actors.keyword,actors.raw和actor.custom_field有什么区别?

谢谢

1 个答案:

答案 0 :(得分:1)

它们是相同的。它们只是类型为关键字的三个字段,具有不同的名称