# How to get words list that found in text?

**URL:** https://discuss.elastic.co/t/how-to-get-words-list-that-found-in-text/62743
**Category:** Elasticsearch
**Created:** [October 11, 2016, 6:17pm UTC](https://discuss.elastic.co/t/how-to-get-words-list-that-found-in-text/62743 "2016-10-11T18:17:08Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Joomler](https://avatars.discourse-cdn.com/v4/letter/j/5f8ce5/32.png) [@Joomler](https://discuss.elastic.co/u/Joomler)
#### Post date: [October 11, 2016, 6:17pm UTC](https://discuss.elastic.co/t/how-to-get-words-list-that-found-in-text/62743/1 "2016-10-11T18:17:08Z")

</div>

I am trying to get termvectors in search result:  
[https://www.elastic.co/guide/en/elasticsearch/reference/1.7/docs-termvectors.html](https://www.elastic.co/guide/en/elasticsearch/reference/1.7/docs-termvectors.html)

I need to know for every result text what words it consist from search query. How?  
(also cannot get this for python connector to elasticsearch [https://django-haystack.readthedocs.io/en/v2.5.0/](https://django-haystack.readthedocs.io/en/v2.5.0/))

---

<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: [July 5, 2017, 10:13pm UTC](https://discuss.elastic.co/t/how-to-get-words-list-that-found-in-text/62743/2 "2017-07-05T22:13:19Z")

</div>


