# Failed to parse ES Query

**URL:** <https://discuss.elastic.co/t/failed-to-parse-es-query/21855>\
**Category:** Elasticsearch\
**Created:** [January 27, 2015, 8:51pm UTC](https://discuss.elastic.co/t/failed-to-parse-es-query/21855 "2015-01-27T20:51:07Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Adon\_Smith](https://avatars.discourse-cdn.com/v4/letter/a/f1d935/32.png) [@Adon\_Smith](https://discuss.elastic.co/u/Adon_Smith)\
**Post date:** [January 27, 2015, 8:51pm UTC](https://discuss.elastic.co/t/failed-to-parse-es-query/21855/1 "2015-01-27T20:51:07Z")

</div>

Hi While executing an ES query through my java code.  
I am getting this exception

Failed to parse query [((("stew" OR "kabobs" OR "filet" OR "brisket" OR "roast" OR "steak" OR "beef" OR "burger") AND asdfqwer3456\\!@#$%dfghtyui%\\^\\\u0026\\(_) AND  
-"vegan")]]; nested: ParseException[Cannot parse \u0027((("stew" OR "kabobs" OR "filet" OR "brisket" OR "roast" OR "steak" OR "beef" OR "burger") AND asdfqwer3456\\!@#$%dfghtyui%\\^\\\u0026\\(_) AND  
-"vegan")\u0027: Lexical error at line 1, column 127. Encountered: "\\" (92), after : ""]; nested: TokenMgrError[Lexical error at line 1, column 127. Encountered: "\\" (92), after : ""]

I am very new to ES , don't know what this exception means ,Can someone please explain ?

--  
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/b60d60c8-afd0-47fd-80d1-cb5e97dfcd3f%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/b60d60c8-afd0-47fd-80d1-cb5e97dfcd3f%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:36am UTC](https://discuss.elastic.co/t/failed-to-parse-es-query/21855/2 "2017-07-06T00:36:20Z")

</div>


