If I have a text field indexed in Elasticsearch with an analyzer applied, I know I can retrieve the analyzed word stems with the term vector API. Is there an efficient way to retrieve all the original words that are associated with a stem from ES?
For example, if my documents contain the words "nationally" and "national" in various documents, an ES analyzer stems them to "nation", which I then retrieve with the termvector API. What I want now is to be able to take the stem "nation" and retrieve the original words "national" and "nationally" (and any other variants that are used within the index).
I know I can probably do this using the start and end offsets to try to map them back to the original words, but is there another more efficient way to do this?