Save quotation ans slash In ES

Hi,

How to save quotations like "" and slash like \ in json in elasticsearch.

I am running below command but it fails:

PUT my_index/_doc/1
{
"name": "Some information",
"value": "//\/"
}

Thanks,

Hi,

Any Update??

Hi,

Elasticsearch needs the special characters to be backslashed in the PUT request. In order to send the special characters backslash you need to do like this:

PUT my_index/_doc/1
{
  "name": "Some information",
  "value": "\\\""
}

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.