# Browse sorted terms

**URL:** <https://discuss.elastic.co/t/browse-sorted-terms/231360>\
**Category:** Elasticsearch\
**Created:** [May 6, 2020, 2:23pm UTC](https://discuss.elastic.co/t/browse-sorted-terms/231360 "2020-05-06T14:23:06Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![zazasa](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/zazasa/32/22294_2.png) [@zazasa](https://discuss.elastic.co/u/zazasa)\
**Post date:** [May 6, 2020, 2:23pm UTC](https://discuss.elastic.co/t/browse-sorted-terms/231360/1 "2020-05-06T14:23:07Z")

</div>

Hi.  
Let's say i have a set of document with common personal information like:

```auto
    {
    "name": "Samuel",
    "Job": "Engineer",
    ....
    }

```

My customer want to browse through all the terms in the "name" field, starting from a page centred on a "selected" name.  
For example they want to search for "Samuel" and show a page of 7 elements like:

```auto
    Eddie: 7
    Lucian: 3
    Sammy: 1
    Samuel: 3
    Scott:3
    Teddy: 2
    Tod: 1

```

Where the names are sorted alphabetically and the number are the number of occurrence.  
Also would be nice to be able to go up and down through pages.  
This is just an example, in the reality I may have lot and lot of unique keys to browse, so returning all the terms and loop over them is not really a solution.

There is a way to achieve this in ES ?

---

<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:** [June 3, 2020, 2:23pm UTC](https://discuss.elastic.co/t/browse-sorted-terms/231360/2 "2020-06-03T14:23:11Z")

</div>

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