Elasticsearch 常见问题

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
}'

猜你喜欢

转载自blog.csdn.net/oJueQiang123456/article/details/85883467