# Escaped '\\' not respected?

**URL:** <https://discuss.elastic.co/t/escaped-not-respected/20761>\
**Category:** Elasticsearch\
**Created:** [November 14, 2014, 10:38pm UTC](https://discuss.elastic.co/t/escaped-not-respected/20761 "2014-11-14T22:38:19Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![D\_Carpeneto](https://avatars.discourse-cdn.com/v4/letter/d/db5fbb/32.png) [@D\_Carpeneto](https://discuss.elastic.co/u/D_Carpeneto)\
**Post date:** [November 14, 2014, 10:38pm UTC](https://discuss.elastic.co/t/escaped-not-respected/20761/1 "2014-11-14T22:38:19Z")

</div>

Hiya - I'm seeing the following on elasticsearch 1.0 : the following query:

```
            {
                "query_string": {
		                  "fields" : ["name", "content", "comment"],
                    "query": "\\um",
                    "boost" : 500
                }
            }

```

... seems to be failing with the following error:

nested: QueryParsingException[[reportoutputmanagementvistaplus] Failed to parse query [\um]]; nested: ParseException[Cannot parse '\um': Non-hex character in Unicode escape sequence: m]; nested: ParseException[Non-hex character in Unicode escape sequence: m]; }]

... so it seems that my escaped backslash is getting stripped out.

The issue seems to resolve if I quadruple - escape the '' (I don't see the  
exception, but I've no clue how elasticsearch is parsing the query).

Is this expected / explainable ? Possibly a known issue in 1.0 ?

Thanks for any / all insights - Dave

--  
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](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/16ee3ec3-266a-4384-b0ab-8fe60012d453%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/16ee3ec3-266a-4384-b0ab-8fe60012d453%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<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:** [July 6, 2017, 12:49am UTC](https://discuss.elastic.co/t/escaped-not-respected/20761/2 "2017-07-06T00:49:53Z")

</div>


