Plugin in Elasticsearch to find the term Dictionary

I am writing a plugin to find the term dictionary.
It creates a new REST endpoint.
I am not able to get leafreader, any idea how could I proceed.
By getting the leafreader I could directly use it to get terms.

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