Auto Completion of Dimension values

We are developing a UI over druid as part of which we need to provide the auto completion of dimension values for which we need the list of all the distinct value of a dimensions.
Is it possible to get the list of all distinct values of a dimension in druid?

I am sure this information is present in the indexes but i am not if it is exposed via some query/




There already good UIs available for Druid like Pivot, Panoramix, Grafana etc. See UIs section here -

Anyways, type ahead can be made possible using Search query -


Pivot uses type-ahead in its UI using the feature Parag mentioned.