# Elastic Search giving invalid format error when using decimal numbers

**URL:** <https://discuss.elastic.co/t/elastic-search-giving-invalid-format-error-when-using-decimal-numbers/15580>\
**Category:** Elasticsearch\
**Created:** [February 4, 2014, 7:26am UTC](https://discuss.elastic.co/t/elastic-search-giving-invalid-format-error-when-using-decimal-numbers/15580 "2014-02-04T07:26:48Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Amit\_Soni](https://avatars.discourse-cdn.com/v4/letter/a/c0e974/32.png) [@Amit\_Soni](https://discuss.elastic.co/u/Amit_Soni)\
**Post date:** [February 4, 2014, 7:26am UTC](https://discuss.elastic.co/t/elastic-search-giving-invalid-format-error-when-using-decimal-numbers/15580/1 "2014-02-04T07:26:48Z")

</div>

Hello everyone - I just observed something and I was wondering if anyone  
has seen something similar. I have a mapping in which there are strings,  
floats, double etc. Now for the following query, I get an error:  
IllegalArgumentException[Invalid  
format: "3000.9" is malformed at ".9"];

{  
"query": {  
"filtered": {  
"query": {  
"simple\_query\_string": {  
"query": "_3000.9_",  
"fields": [  
......//this is where I give a list of all the different  
fields: strings, numbers, dates etc  
],  
"default\_operator": "and"  
}  
}  
}  
}  
}

However, when I search for "3000" (note that there is no decimal), it works  
fine.

Any clue what I might be doing wrong here?

-Amit.

--  
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/CAAOGaQ%2B7FkftMgXiGVEndrvPxG%2BsXUENtj0vkKU4\_fV0MVO4uw%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAAOGaQ%2B7FkftMgXiGVEndrvPxG%2BsXUENtj0vkKU4_fV0MVO4uw%40mail.gmail.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<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, 1:52am UTC](https://discuss.elastic.co/t/elastic-search-giving-invalid-format-error-when-using-decimal-numbers/15580/2 "2017-07-06T01:52:56Z")

</div>


