设置mapping的时候需要设置fielddata 为true
PUT my_index/_mapping/my_type
{
"properties": {
"my_field": {
"type": "text",
"fielddata": true
}
}
}
{
"properties": {
"my_field": {
"type": "text",
"fielddata": true
}
}
}
版权声明:本文为qinyuezhan原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。