# Getting QueryStringQueryParser Error on one index but not on another for dame query

**URL:** <https://discuss.elastic.co/t/getting-querystringqueryparser-error-on-one-index-but-not-on-another-for-dame-query/60107>\
**Category:** Elasticsearch\
**Created:** [September 8, 2016, 6:39pm UTC](https://discuss.elastic.co/t/getting-querystringqueryparser-error-on-one-index-but-not-on-another-for-dame-query/60107 "2016-09-08T18:39:22Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![bgiordano](https://avatars.discourse-cdn.com/v4/letter/b/ba8739/32.png) [@bgiordano](https://discuss.elastic.co/u/bgiordano)\
**Post date:** [September 8, 2016, 6:39pm UTC](https://discuss.elastic.co/t/getting-querystringqueryparser-error-on-one-index-but-not-on-another-for-dame-query/60107/1 "2016-09-08T18:39:22Z")

</div>

Elasticsearch log is showing  
NotSerializableExceptionWrapper[token\_mgs\_error: Lexical error at line , column 16. Encountered: \<EOF. after: ""value"]

The value is a string of 6 lowercase letters which I can't include.  
The original query was against an analyzed field (standard analyzer) and the token should be found in the field.

What is this error telling me?

---

<div class="post-metadata">

**Author:** ![spinscale](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/spinscale/32/25011_2.png) [@spinscale](https://discuss.elastic.co/u/spinscale)\
**Post date:** [September 9, 2016, 10:52am UTC](https://discuss.elastic.co/t/getting-querystringqueryparser-error-on-one-index-but-not-on-another-for-dame-query/60107/2 "2016-09-09T10:52:18Z")

</div>

Hey.

you might have different mappings for this field in different indices. Hard to help without more information. Can you create a reproducble example?

--Alex

---

<div class="post-metadata">

**Author:** ![bgiordano](https://avatars.discourse-cdn.com/v4/letter/b/ba8739/32.png) [@bgiordano](https://discuss.elastic.co/u/bgiordano)\
**Post date:** [September 9, 2016, 11:16am UTC](https://discuss.elastic.co/t/getting-querystringqueryparser-error-on-one-index-but-not-on-another-for-dame-query/60107/3 "2016-09-09T11:16:02Z")

</div>

Thanks - I was thinking along the same lines. I can't reproduce for you  
because by cluster is on a secure network.  
Barbara

[image: [www.novetta.com](http://www.novetta.com)]

Barbara Giordano

_Sr Data Computer Scientist_

500 E Zack Street, 7th Floor

Tampa, FL 33602

Email [bgiordano@novetta.com](mailto:bgiordano@novetta.com)

Office 813-304-2942

Mobile 301-788-3946

_Follow Novetta \*\* [https://www.linkedin.com/company/novetta](https://www.linkedin.com/company/novetta)  
 [https://twitter.com/Novettasol](https://twitter.com/Novettasol) \* [https://plus.google.com/+Novetta/about](https://plus.google.com/+Novetta/about)_  
[https://www.youtube.com/channel/UCkAdZ7uESEHJMowTkMGz8Jw/videos](https://www.youtube.com/channel/UCkAdZ7uESEHJMowTkMGz8Jw/videos)\*

---

<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 5, 2017, 10:21pm UTC](https://discuss.elastic.co/t/getting-querystringqueryparser-error-on-one-index-but-not-on-another-for-dame-query/60107/4 "2017-07-05T22:21:35Z")

</div>


