# Is it possible to query an elasticsearch shingle index for the tokens in the index with number of occurrences?

**URL:** <https://discuss.elastic.co/t/is-it-possible-to-query-an-elasticsearch-shingle-index-for-the-tokens-in-the-index-with-number-of-occurrences/170404>\
**Category:** Elasticsearch\
**Created:** [February 28, 2019, 8:26pm UTC](https://discuss.elastic.co/t/is-it-possible-to-query-an-elasticsearch-shingle-index-for-the-tokens-in-the-index-with-number-of-occurrences/170404 "2019-02-28T20:26:13Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![fields](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/fields/32/41383_2.png) [@fields](https://discuss.elastic.co/u/fields)\
**Post date:** [February 28, 2019, 8:26pm UTC](https://discuss.elastic.co/t/is-it-possible-to-query-an-elasticsearch-shingle-index-for-the-tokens-in-the-index-with-number-of-occurrences/170404/1 "2019-02-28T20:26:13Z")

</div>

I'd like to make a shingle index (bigram and trigram words) on an elasticsearch collection, and then retrieve the list of tokens that the index has identified in the document corpus, along with the number of occurrences of each token. Is this possible?

---

<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:** [March 28, 2019, 8:26pm UTC](https://discuss.elastic.co/t/is-it-possible-to-query-an-elasticsearch-shingle-index-for-the-tokens-in-the-index-with-number-of-occurrences/170404/2 "2019-03-28T20:26:18Z")

</div>

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