How do i show a list of last search value (a.k.a. recent picks) in my global search bar

I am developing global search bar in UI. We have 20 odd indices in elasticsearch and we search across those indices. I want to add one more feature called 'Recent Picks' which will list last search terms. What is a best way to achieve this in elasticsearch? Anything available out of the box?

No, not that I am aware of. Elasticsearch does not automatically track queries and results returned.

It is however possible that one of the search solutions built on top of Elasticsearch that Elastic offer might support this, but I have not used these so do not know for sure.

Thanks for your input