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

**URL:** <https://discuss.elastic.co/t/is-there-a-way-to-get-the-expanded-terms-of-a-wildcard-query/112163>\
**Category:** Elasticsearch\
**Created:** [December 18, 2017, 6:59am UTC](https://discuss.elastic.co/t/is-there-a-way-to-get-the-expanded-terms-of-a-wildcard-query/112163 "2017-12-18T06:59:26Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![dimalini](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dimalini/32/22448_2.png) [@dimalini](https://discuss.elastic.co/u/dimalini)\
**Post date:** [December 18, 2017, 6:59am UTC](https://discuss.elastic.co/t/is-there-a-way-to-get-the-expanded-terms-of-a-wildcard-query/112163/1 "2017-12-18T06:59:26Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [January 15, 2018, 6:59am UTC](https://discuss.elastic.co/t/is-there-a-way-to-get-the-expanded-terms-of-a-wildcard-query/112163/2 "2018-01-15T06:59:42Z")

</div>

Closed on January 15, 2018, 6:59am UTC

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