# How to return a list of words that matched a query

**URL:** <https://discuss.elastic.co/t/how-to-return-a-list-of-words-that-matched-a-query/144947>\
**Category:** Elasticsearch\
**Created:** [August 17, 2018, 6:51pm UTC](https://discuss.elastic.co/t/how-to-return-a-list-of-words-that-matched-a-query/144947 "2018-08-17T18:51:50Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mgrishaber](https://avatars.discourse-cdn.com/v4/letter/m/e9c0ed/32.png) [@mgrishaber](https://discuss.elastic.co/u/mgrishaber)\
**Post date:** [August 17, 2018, 6:51pm UTC](https://discuss.elastic.co/t/how-to-return-a-list-of-words-that-matched-a-query/144947/1 "2018-08-17T18:51:50Z")

</div>

I am looking for a way to return a list of words that matched my search query. Rather than use the Highlight feature, which returns marked up text, I just want a list of the words that were found in the indexed documents as a result of my query.

---

<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:** [September 14, 2018, 6:51pm UTC](https://discuss.elastic.co/t/how-to-return-a-list-of-words-that-matched-a-query/144947/2 "2018-09-14T18:51:53Z")

</div>

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