# Elastic Search Distinct, order by and limit

**URL:** https://discuss.elastic.co/t/elastic-search-distinct-order-by-and-limit/148146
**Category:** Elasticsearch
**Created:** [September 11, 2018, 1:43pm UTC](https://discuss.elastic.co/t/elastic-search-distinct-order-by-and-limit/148146 "2018-09-11T13:43:42Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![rajesh.ramadoss](https://avatars.discourse-cdn.com/v4/letter/r/57b2e6/32.png) [@rajesh.ramadoss](https://discuss.elastic.co/u/rajesh.ramadoss)
#### Post date: [September 11, 2018, 1:43pm UTC](https://discuss.elastic.co/t/elastic-search-distinct-order-by-and-limit/148146/1 "2018-09-11T13:43:42Z")

</div>

Hi ,  
Can someone please let me know the elastic search equivalent query of below mysql query

select distinct(field\_name\_1) from table order by field\_name\_2 limit 0,100

Thanks !

---

<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: [October 9, 2018, 1:44pm UTC](https://discuss.elastic.co/t/elastic-search-distinct-order-by-and-limit/148146/2 "2018-10-09T13:44:02Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
