9
以前はElasticSearch 5.2を使用していましたが、6.0にアップグレードしました。ElasticSearch - Content-Typeヘッダー[application/x-www-form-urlencoded]はサポートされていません
私はガイドhere次のインデックステンプレートを作成しようとしていますが、エラー
Content-Type header [application/x-www-form-urlencoded] is not supported
が私のクエリはこの問題を解決するには
curl -X PUT localhost:9200/_template/template_1 -d '
{
"index_patterns": ["te*", "bar*"],
"mappings": {
"type1": {
"properties": {
"host_name": {
"type": "keyword"
}
}
}
}
}'