# Expanding terms

**URL:** <https://discuss.elastic.co/t/expanding-terms/16006>\
**Category:** Elasticsearch\
**Created:** [February 25, 2014, 10:06am UTC](https://discuss.elastic.co/t/expanding-terms/16006 "2014-02-25T10:06:22Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Petr\_Jansky](https://avatars.discourse-cdn.com/v4/letter/p/ec9cab/32.png) [@Petr\_Jansky](https://discuss.elastic.co/u/Petr_Jansky)\
**Post date:** [February 25, 2014, 10:06am UTC](https://discuss.elastic.co/t/expanding-terms/16006/1 "2014-02-25T10:06:22Z")

</div>

Hello,

I'trying to find a way how to:

1. expand a term - get all words and count that are relevant for a  
term(s)
2. get relevant words for a query - list of all words that  
are highlighted
3. get phrases by word - e.g. for word war =\> world war, second word  
war, the second word war, ....

and complicated one

1. is there a way how to get/highlighted only words that are relevant  
for multiple term conditions e.g.

"must": {  
"wildcard": {  
"content\_morfo": {  
"value": "v\*"  
}  
},  
"wildcard": {  
"content\_morfo": {  
"value": "==AA\*=="  
}  
}  
}

thx  
Petr

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/f2c0eeb5-8da3-4554-bdac-d6b5122f01c1%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/f2c0eeb5-8da3-4554-bdac-d6b5122f01c1%40googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<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 6, 2017, 1:47am UTC](https://discuss.elastic.co/t/expanding-terms/16006/2 "2017-07-06T01:47:31Z")

</div>


