Hi,
We are using elasticsearch version 1.0.1
For updating one of the ES docs, following script is being passed to
updaterequestbuilder via setScript method.
ctx._source.operation= {
"operationID": 290,
"opsThreatLevel": "Low",
"opsName": "OPERATION_SIN",
"opsStartDate": "2014-04-01T00:00:00",
"opsRefNumber": "10245678",
"opsEndDate": "2014-04-23T00:00:00",
"opsDescription": "\u003cp\u003eFake Operation\u003c/p\u003e",
"opsComments": "\u003cp\u003efake clues\u003c/p\u003e",
"dateCreated": "2014-04-02T00:00:00"
}
When the update request gets executed we get following exception
Exception in thread "main"
org.elasticsearch.ElasticsearchIllegalArgumentException: failed to execute
script
at
org.elasticsearch.action.update.UpdateHelper.prepare(UpdateHelper.java:153)
at
org.elasticsearch.action.update.UpdateHelper.prepare(UpdateHelper.java:80)
at
org.elasticsearch.action.update.TransportUpdateAction.shardOperation(TransportUpdateAction.java:189)
at
org.elasticsearch.action.update.TransportUpdateAction.shardOperation(TransportUpdateAction.java:185)
at
org.elasticsearch.action.update.TransportUpdateAction.shardOperation(TransportUpdateAction.java:64)
at
org.elasticsearch.action.support.single.instance.TransportInstanceSingleOperationAction$AsyncSingleAction$1.run(TransportInstanceSingleOperationAction.java:192)
at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:662)
Caused by: [Error: illegal unicode escape sequence]
[Near : {... Description": "\u003cp\u003eFake Operation\u003c/p ....}]
The unicode characters are not getting recognized. How to resolve this??
Regards,
Preeti
--
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 elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/341a0af5-3df9-46bd-bd43-bb18aec8aafb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.