# Cannot get ElasticSearch Config to Create Custom Analyzers

**URL:** <https://discuss.elastic.co/t/cannot-get-elasticsearch-config-to-create-custom-analyzers/23428>\
**Category:** Elasticsearch\
**Created:** [April 27, 2015, 7:51pm UTC](https://discuss.elastic.co/t/cannot-get-elasticsearch-config-to-create-custom-analyzers/23428 "2015-04-27T19:51:18Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Wil\_Wade](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/wil_wade/32/729_2.png) [@Wil\_Wade](https://discuss.elastic.co/u/Wil_Wade)\
**Post date:** [April 27, 2015, 7:51pm UTC](https://discuss.elastic.co/t/cannot-get-elasticsearch-config-to-create-custom-analyzers/23428/1 "2015-04-27T19:51:18Z")

</div>

PasteBin of my attempted config: [http://pastebin.com/175jeAMB](http://pastebin.com/175jeAMB)

ElasticSearch 1.5.2

So I want to have a custom default analyzer, but after days of trying (and  
almost every Google link turned purple), have failed to get it to work.

All I get back out is:  
...

ElasticsearchIllegalArgumentException[failed to find analyzer type  
[supplyhogText] or tokenizer for [default]]

...

for each index.

I have tried setting it up without the "index.analysis.analyzer.default.type  
: "supplyhogText"" line, but it is like it doesn't see my definition lines.

Must be something really simple my tired eyes cannot see. Any ideas?

--  
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/14e8b5a1-e2e9-4914-b164-d585098bdaf9%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/14e8b5a1-e2e9-4914-b164-d585098bdaf9%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![johtani](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/johtani/32/44956_2.png) [@johtani](https://discuss.elastic.co/u/johtani)\
**Post date:** [May 15, 2015, 7:05am UTC](https://discuss.elastic.co/t/cannot-get-elasticsearch-config-to-create-custom-analyzers/23428/2 "2015-05-15T07:05:06Z")

</div>

Hi Wil,

You should change `supplyhogText` to `default` in line 2, and delete last  
line.

2015-04-28 4:51 GMT+09:00 Wil Wade [willm.wade@gmail.com](mailto:willm.wade@gmail.com):

> PasteBin of my attempted config: [index.analysis.analyzer: supplyhogText: type: custom tokenizer: whi - Pastebin.com](http://pastebin.com/175jeAMB)
> 
> Elasticsearch 1.5.2
> 
> So I want to have a custom default analyzer, but after days of trying (and  
> almost every Google link turned purple), have failed to get it to work.
> 
> All I get back out is:  
> ...
> 
> ElasticsearchIllegalArgumentException[failed to find analyzer type  
> [supplyhogText] or tokenizer for [default]]
> 
> ...
> 
> for each index.
> 
> I have tried setting it up without the "  
> index.analysis.analyzer.default.type: "supplyhogText"" line, but it is  
> like it doesn't see my definition lines.
> 
> Must be something really simple my tired eyes cannot see. Any ideas?
> 
> --  
> 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/14e8b5a1-e2e9-4914-b164-d585098bdaf9%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/14e8b5a1-e2e9-4914-b164-d585098bdaf9%40googlegroups.com)  
> [https://groups.google.com/d/msgid/elasticsearch/14e8b5a1-e2e9-4914-b164-d585098bdaf9%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/14e8b5a1-e2e9-4914-b164-d585098bdaf9%40googlegroups.com?utm_medium=email&utm_source=footer)  
> .  
> For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

## --

Jun Ohtani  
blog : [http://blog.johtani.info](http://blog.johtani.info)

## -- Please update your bookmarks! We have moved to [https://discuss.elastic.co/](https://discuss.elastic.co/)

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/CAPW8A5zNDiTKLATpi%2B%2BMET2Lp4mOhMHbhORh97qPA4gtBg3jgQ%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAPW8A5zNDiTKLATpi%2B%2BMET2Lp4mOhMHbhORh97qPA4gtBg3jgQ%40mail.gmail.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:13am UTC](https://discuss.elastic.co/t/cannot-get-elasticsearch-config-to-create-custom-analyzers/23428/3 "2017-07-06T00:13:53Z")

</div>


