# Error "type": "query\_shard\_exception" while running below query in dev tools

**URL:** <https://discuss.elastic.co/t/error-type-query-shard-exception-while-running-below-query-in-dev-tools/186666>\
**Category:** Elasticsearch\
**Created:** [June 20, 2019, 11:12am UTC](https://discuss.elastic.co/t/error-type-query-shard-exception-while-running-below-query-in-dev-tools/186666 "2019-06-20T11:12:08Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![gabriel\_tessier](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/gabriel_tessier/32/27911_2.png) [@gabriel\_tessier](https://discuss.elastic.co/u/gabriel_tessier)\
**Post date:** [June 25, 2019, 5:09am UTC](https://discuss.elastic.co/t/error-type-query-shard-exception-while-running-below-query-in-dev-tools/186666/6 "2019-06-25T05:09:49Z")

</div>

Sorry the link was not the correct one:

Here you have better explanation:

> [@Problems with Query\_String and different field types](https://discuss.elastic.co/t/problems-with-query-string-and-different-field-types/4504/2):
>
> Has no one an idea? Or should i report an issue? On 31 Mai, 13:49, maho [mathias.hod...@gmail.com](mailto:mathias.hod...@gmail.com) wrote: Hi, I have an index with two fields: name: description, type: string name: price, type: double If I send following query, I get an NumberFormatException[For input string: "car"] curl -XGET '[http://localhost:9200/sample/products/\_search?pretty'-d](http://localhost:9200/sample/products/_search?pretty'-d) '{ "query" : { "query\_string" : { "fields": ["description", "price"], "query": "car" } } }' Of course, "car" cant be parse…

It's maybe a limitation of elsaticsearch...  
One solution can be to have a string version of "contentid" something like "contentcode" mapped as string, if all your fields are string you'll not have the error and be able to search on all your fields.

---

_[View the full topic](https://discuss.elastic.co/t/error-type-query-shard-exception-while-running-below-query-in-dev-tools/186666)._
