# How can I create plugin for custom analyzer

**URL:** <https://discuss.elastic.co/t/how-can-i-create-plugin-for-custom-analyzer/37213>\
**Category:** Elasticsearch\
**Created:** [December 15, 2015, 9:01am UTC](https://discuss.elastic.co/t/how-can-i-create-plugin-for-custom-analyzer/37213 "2015-12-15T09:01:39Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![tigerby](https://avatars.discourse-cdn.com/v4/letter/t/6de8d8/32.png) [@tigerby](https://discuss.elastic.co/u/tigerby)\
**Post date:** [December 15, 2015, 9:01am UTC](https://discuss.elastic.co/t/how-can-i-create-plugin-for-custom-analyzer/37213/1 "2015-12-15T09:01:39Z")

</div>

Hi. ES team.

I'm using Elasticsearch 2.1.0.

I want to create custom analyzer using plugin, but I don't know how.

I read ES doc for plugin, and found some project like below, but Following those can't works for me (and too hard) ☹

[https://www.elastic.co/guide/en/elasticsearch/plugins/2.1/analysis.html](https://www.elastic.co/guide/en/elasticsearch/plugins/2.1/analysis.html)

> **[elastic/elasticsearch](https://github.com/elastic/elasticsearch/tree/master/plugins/analysis-icu)**
>
> elasticsearch - Open Source, Distributed, RESTful Search Engine

  

> **[imotov/elasticsearch-analysis-morphology](https://github.com/imotov/elasticsearch-analysis-morphology)**
>
> elasticsearch-analysis-morphology - Morphological Analysis Plugin for ElasticSearch

Is there any docs or template projects for someone like me?

Thanks in advance.

---

<div class="post-metadata">

**Author:** ![mainec](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mainec/32/5557_2.png) [@mainec](https://discuss.elastic.co/u/mainec)\
**Post date:** [December 15, 2015, 9:05am UTC](https://discuss.elastic.co/t/how-can-i-create-plugin-for-custom-analyzer/37213/2 "2015-12-15T09:05:59Z")

</div>

Taking a step back: What exactly do you need the analyzer for? I'm asking because maybe there's something built already that can can solve your usecase.

---

<div class="post-metadata">

**Author:** ![mainec](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mainec/32/5557_2.png) [@mainec](https://discuss.elastic.co/u/mainec)\
**Post date:** [December 15, 2015, 9:08am UTC](https://discuss.elastic.co/t/how-can-i-create-plugin-for-custom-analyzer/37213/3 "2015-12-15T09:08:50Z")

</div>

Other than that - this is a simple ES plugin that I looked at last time I wanted to write a plugin myself:

[https://github.com/elastic/elasticsearch-lang-javascript](https://github.com/elastic/elasticsearch-lang-javascript) - not exactly an analyzer plugin, but to me it was helpful for seeing how plugins work in general.

Edit: Just found in an adjacent thread - [https://www.elastic.co/guide/en/elasticsearch/plugins/current/plugin-authors.html](https://www.elastic.co/guide/en/elasticsearch/plugins/current/plugin-authors.html) - has official examples for plugins.

---

<div class="post-metadata">

**Author:** ![tigerby](https://avatars.discourse-cdn.com/v4/letter/t/6de8d8/32.png) [@tigerby](https://discuss.elastic.co/u/tigerby)\
**Post date:** [December 15, 2015, 9:13am UTC](https://discuss.elastic.co/t/how-can-i-create-plugin-for-custom-analyzer/37213/4 "2015-12-15T09:13:00Z")

</div>

Thanks for reply!

I want to synonymize tokens after tokenizing using my dictionaries.  
That's why I want to build on my own.

---

<div class="post-metadata">

**Author:** ![mainec](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mainec/32/5557_2.png) [@mainec](https://discuss.elastic.co/u/mainec)\
**Post date:** [December 15, 2015, 9:15am UTC](https://discuss.elastic.co/t/how-can-i-create-plugin-for-custom-analyzer/37213/5 "2015-12-15T09:15:19Z")

</div>

Did you check out this:

[https://www.elastic.co/guide/en/elasticsearch/guide/current/using-synonyms.html](https://www.elastic.co/guide/en/elasticsearch/guide/current/using-synonyms.html)

---

<div class="post-metadata">

**Author:** ![tigerby](https://avatars.discourse-cdn.com/v4/letter/t/6de8d8/32.png) [@tigerby](https://discuss.elastic.co/u/tigerby)\
**Post date:** [December 15, 2015, 9:23am UTC](https://discuss.elastic.co/t/how-can-i-create-plugin-for-custom-analyzer/37213/6 "2015-12-15T09:23:17Z")

</div>

Yeah, I found that doc, but It's not fit for me  
Because I have synonimize module implemented by my teammate, and I have to using it for synonimizing job.  
That's why I have to implements customized analyzer.

Thanks for your concern anyway~ 🙂

---

<div class="post-metadata">

**Author:** ![mainec](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mainec/32/5557_2.png) [@mainec](https://discuss.elastic.co/u/mainec)\
**Post date:** [December 15, 2015, 9:28am UTC](https://discuss.elastic.co/t/how-can-i-create-plugin-for-custom-analyzer/37213/7 "2015-12-15T09:28:33Z")

</div>

Makes sense. Out of pure curiosity: How does your teammate's module differ from the standard synonym filter?

---

<div class="post-metadata">

**Author:** ![tigerby](https://avatars.discourse-cdn.com/v4/letter/t/6de8d8/32.png) [@tigerby](https://discuss.elastic.co/u/tigerby)\
**Post date:** [December 16, 2015, 12:10am UTC](https://discuss.elastic.co/t/how-can-i-create-plugin-for-custom-analyzer/37213/8 "2015-12-16T00:10:08Z")

</div>

Product names in Korean which fit my company.

---

<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 5, 2017, 11:30pm UTC](https://discuss.elastic.co/t/how-can-i-create-plugin-for-custom-analyzer/37213/9 "2017-07-05T23:30:46Z")

</div>


