# Query by data types

**URL:** <https://discuss.elastic.co/t/query-by-data-types/10645>\
**Category:** Elasticsearch\
**Created:** [February 6, 2013, 8:53pm UTC](https://discuss.elastic.co/t/query-by-data-types/10645 "2013-02-06T20:53:37Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![phenrigomes](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/phenrigomes/32/105880_2.png) [@phenrigomes](https://discuss.elastic.co/u/phenrigomes)\
**Post date:** [February 6, 2013, 8:53pm UTC](https://discuss.elastic.co/t/query-by-data-types/10645/1 "2013-02-06T20:53:37Z")

</div>

How to search for numeric values, datetime, and range?

date: "yyy-mm-dd". But, how do between?

age: 1. But how range, or greater than?

--  
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).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [February 6, 2013, 9:05pm UTC](https://discuss.elastic.co/t/query-by-data-types/10645/2 "2013-02-06T21:05:04Z")

</div>

Did you look at [http://www.elasticsearch.org/guide/reference/query-dsl/range-filter.html](http://www.elasticsearch.org/guide/reference/query-dsl/range-filter.html) ?

--  
David 😉  
Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs

Le 6 févr. 2013 à 21:53, Pedro Henrique [phenrigomes@gmail.com](mailto:phenrigomes@gmail.com) a écrit :

How to search for numeric values, datetime, and range?

date: "yyy-mm-dd". But, how do between?

## age: 1. But how range, or greater than?

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).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

--  
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).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![phenrigomes](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/phenrigomes/32/105880_2.png) [@phenrigomes](https://discuss.elastic.co/u/phenrigomes)\
**Post date:** [February 7, 2013, 11:55am UTC](https://discuss.elastic.co/t/query-by-data-types/10645/3 "2013-02-07T11:55:50Z")

</div>

But, this also works for datetime?

2013/2/6 David Pilato [david@pilato.fr](mailto:david@pilato.fr)

> Did you look at  
> [Elasticsearch Platform — Find real-time answers at scale | Elastic](http://www.elasticsearch.org/guide/reference/query-dsl/range-filter.html) ?
> 
> --  
> David 😉  
> Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs
> 
> Le 6 févr. 2013 à 21:53, Pedro Henrique [phenrigomes@gmail.com](mailto:phenrigomes@gmail.com) a écrit :
> 
> How to search for numeric values, datetime, and range?
> 
> date: "yyy-mm-dd". But, how do between?
> 
> age: 1. But how range, or greater than?
> 
> --  
> 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).  
> For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).
> 
> --  
> 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).  
> For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

--  
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).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [February 7, 2013, 12:48pm UTC](https://discuss.elastic.co/t/query-by-data-types/10645/4 "2013-02-07T12:48:49Z")

</div>

Yes. Did you try it?

--  
David Pilato | Technical Advocate | [Elasticsearch.com](http://Elasticsearch.com)  
@dadoonet | @elasticsearchfr | @scrutmydocs

Le 7 févr. 2013 à 12:55, Pedro Henrique [phenrigomes@gmail.com](mailto:phenrigomes@gmail.com) a écrit :

> But, this also works for datetime?
> 
> 2013/2/6 David Pilato [david@pilato.fr](mailto:david@pilato.fr)  
> Did you look at [Elasticsearch Platform — Find real-time answers at scale | Elastic](http://www.elasticsearch.org/guide/reference/query-dsl/range-filter.html) ?
> 
> --  
> David 😉  
> Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs
> 
> Le 6 févr. 2013 à 21:53, Pedro Henrique [phenrigomes@gmail.com](mailto:phenrigomes@gmail.com) a écrit :
> 
> How to search for numeric values, datetime, and range?
> 
> date: "yyy-mm-dd". But, how do between?
> 
> age: 1. But how range, or greater than?
> 
> --  
> 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).  
> For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).
> 
> --  
> 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).  
> For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).
> 
> --  
> 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).  
> For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

--  
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).  
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, 2:52am UTC](https://discuss.elastic.co/t/query-by-data-types/10645/5 "2017-07-06T02:52:32Z")

</div>


