Re: ES JsonParseException

2014-09-18 Thread Magnus Bäck
On Thursday, September 18, 2014 at 12:40 CEST, Foobar Geez wrote: > Thanks. I provided a bad example as I guess I over-simplified it and > also edited it to remove proprietary data (thus, missed }). > The following example exhibits the same issue as described in my > original post. > curl -

Re: ES JsonParseException

2014-09-18 Thread Foobar Geez
Thanks. I provided a bad example as I guess I over-simplified it and also edited it to remove proprietary data (thus, missed }). The following example exhibits the same issue as described in my original post. curl -XPUT 'http://localhost:9200/test/test/test' -d ' { "rules": [

Re: ES JsonParseException

2014-09-17 Thread vineeth mohan
Hello , This don't have to do anything with the escape character - Try below - curl -XPUT 'http://localhost:9200/test/test/test' -d ' { "rules": [ { "users" : [ "foo\bar" ] } ] }' Thanks Vineeth On Thu, Sep

ES JsonParseException

2014-09-17 Thread Foobar Geez
Hello, I am a newbie to ES and would appreciate any insights into the below issue (going crazy for the last couple of hours :/): I need to store the following string value into a field -- foo\bar -- with the literal backslash in it. curl -XPUT 'http://localhost:9200/test/test/test' -d ' {