User Tools

Site Tools


elasticsearch

This is an old revision of the document!


Table of Contents

Elasticsearch

Templates

Errors

Error on content type header
{"error":"Content-Type header [application/x-www-form-urlencoded] is not supported","status":406}

In order to fix issue specify header with your curl XPUT.

Original Post

| exmple
curl -XPUT 'localhost:9200/_settings' -H 'Content-Type: application/json' -d '
{
    "index" : {
        "number_of_replicas" : 0
    }
}'
elasticsearch.1516293746.txt.gz · Last modified: 2020/08/10 02:28 (external edit)