# Elasticsearch does not working with number match

**URL:** <https://discuss.elastic.co/t/elasticsearch-does-not-working-with-number-match/23087>\
**Category:** Elasticsearch\
**Created:** [April 3, 2015, 4:02pm UTC](https://discuss.elastic.co/t/elasticsearch-does-not-working-with-number-match/23087 "2015-04-03T16:02:06Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![bairaginath\_behera](https://avatars.discourse-cdn.com/v4/letter/b/e495f1/32.png) [@bairaginath\_behera](https://discuss.elastic.co/u/bairaginath_behera)\
**Post date:** [April 3, 2015, 4:02pm UTC](https://discuss.elastic.co/t/elasticsearch-does-not-working-with-number-match/23087/1 "2015-04-03T16:02:06Z")

</div>

```
             if i want to search price=53. it retrieve all prices 

```

having 53,536,5329 .....................so on. is there any query or filter  
for only retrieves exactly objects having price=53

--  
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/d6c334da-73e0-4484-addf-c6289bc75e85%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/d6c334da-73e0-4484-addf-c6289bc75e85%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![aaronmefford](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/aaronmefford/32/460_2.png) [@aaronmefford](https://discuss.elastic.co/u/aaronmefford)\
**Post date:** [April 3, 2015, 4:22pm UTC](https://discuss.elastic.co/t/elasticsearch-does-not-working-with-number-match/23087/2 "2015-04-03T16:22:27Z")

</div>

You likely are doing string matching because the data was ingested as a  
string. Take a look at the following they should clear things up for you.

> **[Mapping | Elasticsearch: The Definitive Guide \[master\] | Elastic](https://www.elastic.co/guide/en/elasticsearch/guide/master/mapping-intro.html)**

[http://www.elastic.co/guide/en/elasticsearch/reference/1.x/mapping.html](http://www.elastic.co/guide/en/elasticsearch/reference/1.x/mapping.html)  
[http://www.elastic.co/guide/en/elasticsearch/reference/1.x/mapping-core-types.html#number](http://www.elastic.co/guide/en/elasticsearch/reference/1.x/mapping-core-types.html#number)

On Friday, April 3, 2015 at 10:02:06 AM UTC-6, bairaginath behera wrote:

> ```
> if i want to search price=53. it retrieve all prices 
> 
> ```
> 
> having 53,536,5329 .....................so on. is there any query or filter  
> for only retrieves exactly objects having price=53

--  
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/5b7c01e0-1bf7-4999-b32f-91b2448e37ad%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/5b7c01e0-1bf7-4999-b32f-91b2448e37ad%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:21am UTC](https://discuss.elastic.co/t/elasticsearch-does-not-working-with-number-match/23087/3 "2017-07-06T00:21:47Z")

</div>


