# Elasticsearch not able to index backslash i.e "\\"

**URL:** <https://discuss.elastic.co/t/elasticsearch-not-able-to-index-backslash-i-e/85534>\
**Category:** Elasticsearch\
**Created:** [May 12, 2017, 9:43am UTC](https://discuss.elastic.co/t/elasticsearch-not-able-to-index-backslash-i-e/85534 "2017-05-12T09:43:56Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ssg](https://avatars.discourse-cdn.com/v4/letter/s/e68b1a/32.png) [@ssg](https://discuss.elastic.co/u/ssg)\
**Post date:** [May 12, 2017, 9:43am UTC](https://discuss.elastic.co/t/elasticsearch-not-able-to-index-backslash-i-e/85534/1 "2017-05-12T09:43:56Z")

</div>

Hi All,

I am using Elasticsearch 5.1.1 .  
I am trying to post data to ES as follows:

POST [http://localhost:9200/test54/data/1](http://localhost:9200/test54/data/1)

{  
"name":"data \"  
}

I am expecting "data " to be stored , However "data \" is stored as it is. i.e ES is not considering "" as a escape character.  
Note: I am **not** using any special mapping for this.  
Can someone please help ?

---

<div class="post-metadata">

**Author:** ![Igor\_Motov](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/igor_motov/32/45193_2.png) [@Igor\_Motov](https://discuss.elastic.co/u/Igor_Motov)\
**Post date:** [May 22, 2017, 3:02pm UTC](https://discuss.elastic.co/t/elasticsearch-not-able-to-index-backslash-i-e/85534/2 "2017-05-22T15:02:36Z")

</div>

> [@ssg](#):
>
> However "data \" is stored as it is.

How did you verify that?

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [June 19, 2017, 3:02pm UTC](https://discuss.elastic.co/t/elasticsearch-not-able-to-index-backslash-i-e/85534/3 "2017-06-19T15:02:38Z")

</div>

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