# Problems with Query\_String and different field types

**URL:** <https://discuss.elastic.co/t/problems-with-query-string-and-different-field-types/4504>\
**Category:** Elasticsearch\
**Created:** [May 31, 2011, 11:49am UTC](https://discuss.elastic.co/t/problems-with-query-string-and-different-field-types/4504 "2011-05-31T11:49:06Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![maho](https://avatars.discourse-cdn.com/v4/letter/m/4da419/32.png) [@maho](https://discuss.elastic.co/u/maho)\
**Post date:** [June 1, 2011, 7:01am UTC](https://discuss.elastic.co/t/problems-with-query-string-and-different-field-types/4504/2 "2011-06-01T07:01:09Z")

</div>

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 parsed to double, but can this be ignored?
> 
> Thanks.

---

_[View the full topic](https://discuss.elastic.co/t/problems-with-query-string-and-different-field-types/4504)._
