es 排序 text 字段

2019-06-26  本文已影响0人  良人与我

配置 mapping 使能 fielddata 。

Enabling fielddata on text fieldsedit
You can enable fielddata on an existing text field using the PUT mapping API as follows:

PUT my_index/_mapping/_doc
{
"properties": {
"my_field": {
"type": "text",
"fielddata": true
}
}
}

参考
https://www.elastic.co/guide/en/elasticsearch/reference/6.3/fielddata.html

上一篇下一篇

猜你喜欢

热点阅读