Is there a way to get the expanded terms of a wildcard query?

Hi,
I have a simple sense query like this

POST /_search
{
"query": {
"wildcard": {
"field1": {
"value": "app*"
}
}
}
}

I want to know if there is any way to edit the above query and also get the expanded terms[eg: app, app0, apple] for which the file hit was returned along with the hit information ?

One way I am aware is looking for the snippet tags(indicating the terms) on including the highlighter component. Trying to find any alternate and more accurate way for the same.

Thanks,
Divya

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