背景: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
        }    
    }    
}

 

相关文章:

  • 2021-09-30
  • 2022-12-23
  • 2021-11-10
  • 2022-12-23
  • 2021-10-17
  • 2021-10-09
  • 2021-09-23
  • 2021-08-20
猜你喜欢
  • 2021-08-30
  • 2021-12-26
  • 2021-05-15
  • 2022-12-23
  • 2021-07-01
相关资源
相似解决方案