how to set fielddata=true in kibana

前端 未结 5 2211
情话喂你
情话喂你 2020-12-24 10:58

I am new to Kibana, have data loaded into Elastic 5.0.0-alpha3 and am using Kibana 5.0.0-alpha3 to Visualise. I can display some numeric fields as histograms but when I want

5条回答
  •  南笙
    南笙 (楼主)
    2020-12-24 11:35

    Enable fielddata on an existing text field, this is required to do aggregation on this field

    PUT megacorp/_mapping/employee
    {
      "properties": {
        "interests": { 
          "type":     "text",
          "fielddata": true
        }
      }
    }
    

提交回复
热议问题