# Elastic Search enquiry : query to search data with greater and less than filter

**URL:** <https://discuss.elastic.co/t/elastic-search-enquiry-query-to-search-data-with-greater-and-less-than-filter/10666>\
**Category:** Elasticsearch\
**Created:** [February 8, 2013, 11:05am UTC](https://discuss.elastic.co/t/elastic-search-enquiry-query-to-search-data-with-greater-and-less-than-filter/10666 "2013-02-08T11:05:16Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![mohit\_Kumar](https://avatars.discourse-cdn.com/v4/letter/m/c89c15/32.png) [@mohit\_Kumar](https://discuss.elastic.co/u/mohit_Kumar)\
**Post date:** [February 8, 2013, 11:05am UTC](https://discuss.elastic.co/t/elastic-search-enquiry-query-to-search-data-with-greater-and-less-than-filter/10666/1 "2013-02-08T11:05:16Z")

</div>

sir,

can we use greater or less than symbol in elastic search. If yes then it is  
possible to use it within filter.

Thanks and regads  
Mohit Kumar Yadav

--  
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:** ![mars](https://avatars.discourse-cdn.com/v4/letter/m/e56c9b/32.png) [@mars](https://discuss.elastic.co/u/mars)\
**Post date:** [February 8, 2013, 11:25am UTC](https://discuss.elastic.co/t/elastic-search-enquiry-query-to-search-data-with-greater-and-less-than-filter/10666/2 "2013-02-08T11:25:14Z")

</div>

try this..

```
  "filter": {
                    "range": { "field_name": { "from": "form_value" , 

```

"to": "to\_val"}  
}

On Friday, February 8, 2013 4:35:16 PM UTC+5:30, Mohit Kumar Yadav wrote:

> sir,
> 
> can we use greater or less than symbol in Elasticsearch. If yes then it  
> is possible to use it within filter.
> 
> Thanks and regads  
> Mohit Kumar Yadav

--  
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/elastic-search-enquiry-query-to-search-data-with-greater-and-less-than-filter/10666/3 "2017-07-06T02:52:26Z")

</div>


