背景:elasticsearch 進行排序的時候,可能會排序數字、日期。但是在排序text類型的時候就會出現上述錯誤 原因(參考): https://blog.csdn.net/wild46cat/article/details/62889554 https://www.elastic.co/guide/en/elasticsearch/reference/current/fielddata.html 解決方法: <1> kibana中 PUT 索引名稱/_mapping/type名稱/ { "properties":{ "字段名稱":{ "type":"text", "fielddata":true } } }
