# Adding custom token filter in Elastic Search for retrieving skip-grams

**URL:** <https://discuss.elastic.co/t/adding-custom-token-filter-in-elastic-search-for-retrieving-skip-grams/21354>\
**Category:** Elasticsearch\
**Created:** [December 22, 2014, 4:16pm UTC](https://discuss.elastic.co/t/adding-custom-token-filter-in-elastic-search-for-retrieving-skip-grams/21354 "2014-12-22T16:16:09Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Aashu\_singh](https://avatars.discourse-cdn.com/v4/letter/a/5daacb/32.png) [@Aashu\_singh](https://discuss.elastic.co/u/Aashu_singh)\
**Post date:** [December 22, 2014, 4:16pm UTC](https://discuss.elastic.co/t/adding-custom-token-filter-in-elastic-search-for-retrieving-skip-grams/21354/1 "2014-12-22T16:16:09Z")

</div>

I searched online and found that shingles tokenizer that comes  
pre-installed with elastic search can give bigrams, trigrams etc.

I want to retrieve skip-grams from my documents for indexing, along with  
words, bigrams and trigrams.

Further search revealed that I might have to write a custom plugin for such  
tokenizer. But I could not find proper documentation for writing one. Can  
anyone point me to the right resources which I might need for the task.

Thanks!

--  
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/ecb26d94-1255-4402-a560-359df78e29e1%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/ecb26d94-1255-4402-a560-359df78e29e1%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<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, 12:42am UTC](https://discuss.elastic.co/t/adding-custom-token-filter-in-elastic-search-for-retrieving-skip-grams/21354/2 "2017-07-06T00:42:20Z")

</div>


