# Word cloud with phrase

**URL:** <https://discuss.elastic.co/t/word-cloud-with-phrase/100021>\
**Category:** Elasticsearch\
**Created:** [September 11, 2017, 9:03am UTC](https://discuss.elastic.co/t/word-cloud-with-phrase/100021 "2017-09-11T09:03:36Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![hjlsr](https://avatars.discourse-cdn.com/v4/letter/h/ea5d25/32.png) [@hjlsr](https://discuss.elastic.co/u/hjlsr)\
**Post date:** [September 11, 2017, 9:03am UTC](https://discuss.elastic.co/t/word-cloud-with-phrase/100021/1 "2017-09-11T09:03:36Z")

</div>

Hi all.  
I want have my own wordcloud that shows phrase more than single word.  
I use term aggregation in elasticsearch , and shingleFilter for tokenize token stream to get phrase result.  
so result is not suitable for me.  
i want to score phrase instead of single word , i mean in text field may be i have " A or B and C " , now it is suitable for me to get "A or B" above than "A" and "B" . so how i can do that? can i score phrase cross single word?  
and my next issue is stop words ...  
if i remove stop words in indexing field , i guess it is not suitable for me . because in this case i create a non-real phrase .for example if i have "A or B " and i remove stop words in indexing data so i get "A B" in wordcloud result , but may be "A B" is meaningless word.  
so i don't remove stop words in indexind data, and want to remove this after shingle filter tokenize my text, then i want to remove all the stop words that occur start or end of the [phrases.is](http://phrases.is) it correct ?or any best approach any one has to create my owncloud in best way.

tnx

---

<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:** [October 9, 2017, 9:04am UTC](https://discuss.elastic.co/t/word-cloud-with-phrase/100021/2 "2017-10-09T09:04:01Z")

</div>

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