在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有什么区别?
谢谢
答案 0 :(得分:1)
它们是相同的。它们只是类型为关键字的三个字段,具有不同的名称