Browse sorted terms

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

    {
    "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:

    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 ?

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