1、user_id聚合查询异常(fielddata=true)
curl -H "Content-Type: application/json" -XPUT 'localhost:9200/_index/_doc/_mapping' -d '
{
"properties": {
"user_id":{
"type": "text",
"fielddata": true
}
}
}'
2、只读异常([FORBIDDEN/12/index read-only / allow delete (api)])
curl -H "Content-Type: application/json" -XPUT 'localhost:9200/_all/_settings/' -d '
{
"index.blocks.read_only_allow_delete": null
}'