XPUT not working

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

XPUT not working

rpalsaxena
This post has NOT been accepted by the mailing list yet.
I am using elasticsearch on windows using curl. I am getting MapperParsingException
Please suggest me some solution
It is working properly on linux system but on windows it's not working



PS C:\Users\Saxena> curl -XPUT localhost:9200/test/type/1 -d '{"test" : "value"}'
{"error":"MapperParsingException[failed to parse]; nested: JsonParseException[Unrecognized token 'value': was
('true', 'false' or 'null')\n at [Source: [B@591265d6; line: 1, column: 15]]; ","status":400}PS C:\Users\Saxe
calhost:9200/test/_mapping?pretty=1
{
  "test" : {
    "mappings" : {
      "type" : {
        "_source" : {
          "enabled" : false
        },
        "properties" : { }
      }
    }
  }
}



Thanks in advance :D
Reply | Threaded
Open this post in threaded view
|

Re: XPUT not working

blackoon
This post has NOT been accepted by the mailing list yet.
example :
curl -XPUT localhost:9200/index/_settings -d"{""analysis"
":{""analyzer"":{""ikAnalyzer"":{""type"":""org.elasticsearch.index.analysis.IkA
nalyzerProvider"",""alias"":""ik""}}}}"  

Running on win7 64 system is ok!