# Proper way to configure a custom analyzer

**URL:** <https://discuss.elastic.co/t/proper-way-to-configure-a-custom-analyzer/7711>\
**Category:** Elasticsearch\
**Created:** [May 15, 2012, 11:03pm UTC](https://discuss.elastic.co/t/proper-way-to-configure-a-custom-analyzer/7711 "2012-05-15T23:03:40Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ivan](https://avatars.discourse-cdn.com/v4/letter/i/df788c/32.png) [@Ivan](https://discuss.elastic.co/u/Ivan)\
**Post date:** [May 15, 2012, 11:03pm UTC](https://discuss.elastic.co/t/proper-way-to-configure-a-custom-analyzer/7711/1 "2012-05-15T23:03:40Z")

</div>

The syntax seems simple, but I must be missing some punctuation at  
some point. I am unable to create a custom analyzer with a filter.

Here is a gist with the relevant snippet of the mapping:  
[https://gist.github.com/2705752](https://gist.github.com/2705752)

If I leave filter empty ( "filter": [] ), then everything works. If I  
put in any value, the config file will not be read. Only warning is

[2012-05-15 16:00:37,718][WARN][cluster.metadata] [Janus]  
[products-c] failed to read template  
[\elasticsearch-0.19.2\config\templates\product\_template.json] from  
config

The eventual configuration is much more detailed, but it seems to be  
failing with the filter section.

Cheers,

Ivan

---

<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:** [May 16, 2012, 9:36pm UTC](https://discuss.elastic.co/t/proper-way-to-configure-a-custom-analyzer/7711/2 "2012-05-16T21:36:36Z")

</div>

It seems to be an issue with properly loading nested settings in a template  
when loaded from a config path, opened an issue:  
[Index Templates settings provided in a config file fails to load properly · Issue #1960 · elastic/elasticsearch · GitHub](https://github.com/elasticsearch/elasticsearch/issues/1960), will be fixed  
shortly.

On Wed, May 16, 2012 at 2:03 AM, Ivan Brusic [ivan@brusic.com](mailto:ivan@brusic.com) wrote:

> The syntax seems simple, but I must be missing some punctuation at  
> some point. I am unable to create a custom analyzer with a filter.
> 
> Here is a gist with the relevant snippet of the mapping:  
> [https://gist.github.com/2705752](https://gist.github.com/2705752)
> 
> If I leave filter empty ( "filter": ), then everything works. If I  
> put in any value, the config file will not be read. Only warning is
> 
> [2012-05-15 16:00:37,718][WARN][cluster.metadata] [Janus]  
> [products-c] failed to read template  
> [\elasticsearch-0.19.2\config\templates\product\_template.json] from  
> config
> 
> The eventual configuration is much more detailed, but it seems to be  
> failing with the filter section.
> 
> Cheers,
> 
> Ivan

---

<div class="post-metadata">

**Author:** ![Ivan](https://avatars.discourse-cdn.com/v4/letter/i/df788c/32.png) [@Ivan](https://discuss.elastic.co/u/Ivan)\
**Post date:** [May 16, 2012, 10:58pm UTC](https://discuss.elastic.co/t/proper-way-to-configure-a-custom-analyzer/7711/3 "2012-05-16T22:58:20Z")

</div>

Thanks. It is good to know that I am not going crazy and it is a bug instead.

--  
Ivan

On Wed, May 16, 2012 at 2:36 PM, Shay Banon [kimchy@gmail.com](mailto:kimchy@gmail.com) wrote:

> It seems to be an issue with properly loading nested settings in a template  
> when loaded from a config path, opened an  
> issue: [Index Templates settings provided in a config file fails to load properly · Issue #1960 · elastic/elasticsearch · GitHub](https://github.com/elasticsearch/elasticsearch/issues/1960), will be  
> fixed shortly.
> 
> On Wed, May 16, 2012 at 2:03 AM, Ivan Brusic [ivan@brusic.com](mailto:ivan@brusic.com) wrote:
> 
> > The syntax seems simple, but I must be missing some punctuation at  
> > some point. I am unable to create a custom analyzer with a filter.
> > 
> > Here is a gist with the relevant snippet of the mapping:  
> > [https://gist.github.com/2705752](https://gist.github.com/2705752)
> > 
> > If I leave filter empty ( "filter": ), then everything works. If I  
> > put in any value, the config file will not be read. Only warning is
> > 
> > [2012-05-15 16:00:37,718][WARN][cluster.metadata] [Janus]  
> > [products-c] failed to read template  
> > [\elasticsearch-0.19.2\config\templates\product\_template.json] from  
> > config
> > 
> > The eventual configuration is much more detailed, but it seems to be  
> > failing with the filter section.
> > 
> > Cheers,
> > 
> > Ivan

---

<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, 3:28am UTC](https://discuss.elastic.co/t/proper-way-to-configure-a-custom-analyzer/7711/4 "2017-07-06T03:28:29Z")

</div>


