Remove escaped characters before inserting data

Here is an example....

DELETE /test_index

POST /test_index/myid/
{"_uid":1234,"id":1,"name":"someName","newProperty":"some \" and some text\"Value","status":0}

POST /test_index/_search

As you can see in the results, there is a double quote. Is there anyway to remove all escaped characters before inserting the data?

You need to change your data before it get indexed.

You can do that in your application, in Logstash or from 5.0 with ingest node.

1 Like