Preeti,

Well, I tried to look at the addScript method code but that trail was 
getting a bit too long.

However, I do have a JSON parser (wrapped inside a Bash script) that uses 
the stream parser in the version of Jackson supplied with ES, and I can get 
it to parse your JSON (stored in the script.json file) and then emit the 
proper Unicode (UTF-8 to the console, even on Mac OS if there are Chinese 
characters. Yay!) but without the escape sequences (they have been resolved 
to their Unicode character values):

*$ parse-json.sh -j script.json *
{
  "operationID" : 290,
  "opsThreatLevel" : "Low",
  "opsName" : "OPERATION_SIN",
  "opsStartDate" : "2014-04-01T00:00:00",
  "opsRefNumber" : "10245678",
  "opsEndDate" : "2014-04-23T00:00:00",
  "opsDescription" : "<p>Fake Operation</p>",
  "opsComments" : "<p>fake clues</p>",
  "dateCreated" : "2014-04-02T00:00:00"
}

So I'm sure that your JSON is valid and that your Unicode escape sequences 
are correct. Perhaps you might try adding this document and not the 
original one with the escape sequences, and see what kind of exception 
message is generated.

Regards,
Brian

-- 
You received this message because you are subscribed to the Google Groups 
"elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/elasticsearch/7fcb33f3-f706-4878-b568-1c865fdb2f79%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to