# Configuring a custom tokenizer

**URL:** <https://discuss.elastic.co/t/configuring-a-custom-tokenizer/3805>\
**Category:** Elasticsearch\
**Created:** [January 18, 2011, 8:42pm UTC](https://discuss.elastic.co/t/configuring-a-custom-tokenizer/3805 "2011-01-18T20:42:10Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![PaullyB](https://avatars.discourse-cdn.com/v4/letter/p/96bed5/32.png) [@PaullyB](https://discuss.elastic.co/u/PaullyB)\
**Post date:** [January 18, 2011, 8:42pm UTC](https://discuss.elastic.co/t/configuring-a-custom-tokenizer/3805/1 "2011-01-18T20:42:10Z")

</div>

I have my own custom Tokenizer and would like to use it in Elastic  
Search. How do I configure it in elasticsearch.yml? Do I need to  
reference the fully qualified class name? Also, is there a way to set  
parameters of the class in the configuration?

Thanks,  
Paul

---

<div class="post-metadata">

**Author:** ![kimchy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kimchy/32/44952_2.png) [@kimchy](https://discuss.elastic.co/u/kimchy)\
**Post date:** [January 19, 2011, 10:27am UTC](https://discuss.elastic.co/t/configuring-a-custom-tokenizer/3805/2 "2011-01-19T10:27:29Z")

</div>

Its a bit tricky. What you need to do is extend one of elasticsearch built in providers for analyzers/tokenizers and then, within it, create your tokenizer. Then, within the configuration, you can reference that class. Check out the org.elasticsearch.index.analyiss package source code.  
On Tuesday, January 18, 2011 at 10:42 PM, PaullyB wrote:

> I have my own custom Tokenizer and would like to use it in Elastic  
> Search. How do I configure it in elasticsearch.yml? Do I need to  
> reference the fully qualified class name? Also, is there a way to set  
> parameters of the class in the configuration?
> 
> Thanks,  
> Paul

---

<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, 4:13am UTC](https://discuss.elastic.co/t/configuring-a-custom-tokenizer/3805/3 "2017-07-06T04:13:32Z")

</div>


