0
我試圖做一個簡單的獨特聚集的時候,卻收到此錯誤:獲得「場數據加載禁止」試圖聚集
java.lang.IllegalStateException: Field data loading is forbidden on eid
這是我的查詢:
POST /logstash-2016.06.*/Nginx/_search
{
"query": {
"bool": {
"filter": [
{
"term": {
"pid": "1"
}
},
{
"term": {
"cvprogress": "0"
}
},
{
"range" : {
"ServerTime" : {
"gte" : "2016-06-28T00:00:00"
}
}
}
]
}
},
"aggs": {
"distinct_colors" : {
"cardinality" : {
"field" : "eid"
}
}
}
}
https://github.com/elastic/elasticsearch/issues/15267 –