# Plugin error 0.18.4

**URL:** <https://discuss.elastic.co/t/plugin-error-0-18-4/5947>\
**Category:** Elasticsearch\
**Created:** [November 22, 2011, 8:27pm UTC](https://discuss.elastic.co/t/plugin-error-0-18-4/5947 "2011-11-22T20:27:22Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Gustavo\_Maia](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/gustavo_maia/32/2183_2.png) [@Gustavo\_Maia](https://discuss.elastic.co/u/Gustavo_Maia)\
**Post date:** [November 22, 2011, 8:27pm UTC](https://discuss.elastic.co/t/plugin-error-0-18-4/5947/1 "2011-11-22T20:27:22Z")

</div>

Hello,

I'm having problems with my plugin to remove accent in the ES version 0.18.4.  
Sometimes I just restart the ES bin/elasticsearch -f and plugin stops working.  
Reinforcing I just stop and start the process of ES and the plugin  
stops working.  
Can anyone help me?

--  
Gustavo Maia

---

<div class="post-metadata">

**Author:** ![Gustavo\_Maia](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/gustavo_maia/32/2183_2.png) [@Gustavo\_Maia](https://discuss.elastic.co/u/Gustavo_Maia)\
**Post date:** [November 22, 2011, 9:23pm UTC](https://discuss.elastic.co/t/plugin-error-0-18-4/5947/2 "2011-11-22T21:23:20Z")

</div>

It was also detected that the configuration was not loaded delimiter.txt too.  
With the same problem, when restarting the ES sometimes stop working.

2011/11/22 Gustavo Maia [gustavobbmaia@gmail.com](mailto:gustavobbmaia@gmail.com):

> Hello,
> 
> I'm having problems with my plugin to remove accent in the ES version 0.18.4.  
> Sometimes I just restart the ES bin/elasticsearch -f and plugin stops working.  
> Reinforcing I just stop and start the process of ES and the plugin  
> stops working.  
> Can anyone help me?
> 
> --  
> Gustavo Maia

--  
Gustavo Maia

---

<div class="post-metadata">

**Author:** ![Gustavo\_Maia](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/gustavo_maia/32/2183_2.png) [@Gustavo\_Maia](https://discuss.elastic.co/u/Gustavo_Maia)\
**Post date:** [November 22, 2011, 9:36pm UTC](https://discuss.elastic.co/t/plugin-error-0-18-4/5947/3 "2011-11-22T21:36:17Z")

</div>

For more info:

{  
"jurisindexname" : {  
"settings" : {  
"index.analysis.analyzer.documentofacetanalyzer.tokenizer" : "whitespace",  
"index.analysis.analyzer.notstemmeranalyzer.filter.0" : "accentFilter",  
"index.analysis.analyzer.notstemmeranalyzer.filter.1" : "standard",  
"index.analysis.filter.jus\_stop.type" : "stop",  
"index.analysis.filter.jus\_word\_delimiter.type\_table\_path" :  
"/opt/elasticsearch/config/delimiter.txt",  
"index.analysis.analyzer.notstemmeranalyzer.filter.4" : "jus\_stop",  
"index.analysis.filter.jus\_stop.enable\_position\_increments" : "false",  
"index.analysis.analyzer.notstemmeranalyzer.filter.3" : "lowercase",  
"index.analysis.analyzer.notstemmeranalyzer.filter.2" :  
"jus\_word\_delimiter",  
"index.number\_of\_replicas" : "1",  
"index.analysis.filter.jus\_word\_delimiter.catenate\_numbers" : "true",  
"index.analysis.analyzer.notstemmeranalyzer.tokenizer" : "whitespace",  
"index.analysis.filter.jus\_word\_delimiter.preserve\_original" : "true",  
"index.analysis.analyzer.patternanalyzer.pattern" : "##",  
"index.analysis.filter.jus\_word\_delimiter.catenate\_words" : "true",  
"index.analysis.filter.jus\_word\_delimiter.catenate\_all" : "true",  
"index.analysis.filter.jus\_word\_delimiter.split\_on\_numerics" : "true",  
"index.analysis.filter.jus\_stop.ignore\_case" : "true",  
"index.analysis.filter.jus\_stemmer.name" : "portuguese",  
"index.number\_of\_shards" : "2",  
"index.analysis.analyzer.documentochildanalyzer.tokenizer" : "whitespace",  
"index.analysis.filter.jus\_stop._lang_" : "brazilian",  
"index.analysis.analyzer.default.filter.5" : "jus\_stemmer",  
"index.analysis.analyzer.default.filter.3" : "lowercase",  
"index.analysis.analyzer.default.filter.4" : "jus\_stop",  
"index.analysis.analyzer.default.tokenizer" : "whitespace",  
"index.analysis.filter.jus\_word\_delimiter.type" : "word\_delimiter",  
"index.analysis.analyzer.default.filter.1" : "standard",  
"index.analysis.analyzer.default.filter.2" : "jus\_word\_delimiter",  
"index.analysis.analyzer.default.filter.0" : "accentFilter",  
"index.analysis.analyzer.patternanalyzer.type" : "pattern",  
"index.analysis.filter.jus\_stemmer.type" : "stemmer",  
"index.analysis.filter.jus\_stop.stopwords\_path" :  
"/opt/elasticsearch/config/stopwords.txt"  
}  
}  
}

2011/11/22 Gustavo Maia [gustavobbmaia@gmail.com](mailto:gustavobbmaia@gmail.com):

> It was also detected that the configuration was not loaded delimiter.txt too.  
> With the same problem, when restarting the ES sometimes stop working.
> 
> 2011/11/22 Gustavo Maia [gustavobbmaia@gmail.com](mailto:gustavobbmaia@gmail.com):
> 
> > Hello,
> > 
> > I'm having problems with my plugin to remove accent in the ES version 0.18.4.  
> > Sometimes I just restart the ES bin/elasticsearch -f and plugin stops working.  
> > Reinforcing I just stop and start the process of ES and the plugin  
> > stops working.  
> > Can anyone help me?
> > 
> > --  
> > Gustavo Maia
> 
> --  
> Gustavo Maia

--  
Gustavo Maia

---

<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:** [November 23, 2011, 10:19am UTC](https://discuss.elastic.co/t/plugin-error-0-18-4/5947/4 "2011-11-23T10:19:10Z")

</div>

Nothing changed in 0.18.4 for this, is your plugin loaded properly?

On Tue, Nov 22, 2011 at 11:36 PM, Gustavo Maia [gustavobbmaia@gmail.com](mailto:gustavobbmaia@gmail.com)wrote:

> For more info:
> 
> {  
> "jurisindexname" : {  
> "settings" : {  
> "index.analysis.analyzer.documentofacetanalyzer.tokenizer" :  
> "whitespace",  
> "index.analysis.analyzer.notstemmeranalyzer.filter.0" :  
> "accentFilter",  
> "index.analysis.analyzer.notstemmeranalyzer.filter.1" : "standard",  
> "index.analysis.filter.jus\_stop.type" : "stop",  
> "index.analysis.filter.jus\_word\_delimiter.type\_table\_path" :  
> "/opt/elasticsearch/config/delimiter.txt",  
> "index.analysis.analyzer.notstemmeranalyzer.filter.4" : "jus\_stop",  
> "index.analysis.filter.jus\_stop.enable\_position\_increments" : "false",  
> "index.analysis.analyzer.notstemmeranalyzer.filter.3" : "lowercase",  
> "index.analysis.analyzer.notstemmeranalyzer.filter.2" :  
> "jus\_word\_delimiter",  
> "index.number\_of\_replicas" : "1",  
> "index.analysis.filter.jus\_word\_delimiter.catenate\_numbers" : "true",  
> "index.analysis.analyzer.notstemmeranalyzer.tokenizer" : "whitespace",  
> "index.analysis.filter.jus\_word\_delimiter.preserve\_original" : "true",  
> "index.analysis.analyzer.patternanalyzer.pattern" : "##",  
> "index.analysis.filter.jus\_word\_delimiter.catenate\_words" : "true",  
> "index.analysis.filter.jus\_word\_delimiter.catenate\_all" : "true",  
> "index.analysis.filter.jus\_word\_delimiter.split\_on\_numerics" : "true",  
> "index.analysis.filter.jus\_stop.ignore\_case" : "true",  
> "index.analysis.filter.jus\_stemmer.name" : "portuguese",  
> "index.number\_of\_shards" : "2",  
> "index.analysis.analyzer.documentochildanalyzer.tokenizer" :  
> "whitespace",  
> "index.analysis.filter.jus\_stop._lang_" : "brazilian",  
> "index.analysis.analyzer.default.filter.5" : "jus\_stemmer",  
> "index.analysis.analyzer.default.filter.3" : "lowercase",  
> "index.analysis.analyzer.default.filter.4" : "jus\_stop",  
> "index.analysis.analyzer.default.tokenizer" : "whitespace",  
> "index.analysis.filter.jus\_word\_delimiter.type" : "word\_delimiter",  
> "index.analysis.analyzer.default.filter.1" : "standard",  
> "index.analysis.analyzer.default.filter.2" : "jus\_word\_delimiter",  
> "index.analysis.analyzer.default.filter.0" : "accentFilter",  
> "index.analysis.analyzer.patternanalyzer.type" : "pattern",  
> "index.analysis.filter.jus\_stemmer.type" : "stemmer",  
> "index.analysis.filter.jus\_stop.stopwords\_path" :  
> "/opt/elasticsearch/config/stopwords.txt"  
> }  
> }  
> }
> 
> 2011/11/22 Gustavo Maia [gustavobbmaia@gmail.com](mailto:gustavobbmaia@gmail.com):
> 
> > It was also detected that the configuration was not loaded delimiter.txt  
> > too.  
> > With the same problem, when restarting the ES sometimes stop working.
> > 
> > 2011/11/22 Gustavo Maia [gustavobbmaia@gmail.com](mailto:gustavobbmaia@gmail.com):
> > 
> > > Hello,
> > > 
> > > I'm having problems with my plugin to remove accent in the ES version  
> > > 0.18.4.  
> > > Sometimes I just restart the ES bin/elasticsearch -f and plugin stops  
> > > working.  
> > > Reinforcing I just stop and start the process of ES and the plugin  
> > > stops working.  
> > > Can anyone help me?
> > > 
> > > --  
> > > Gustavo Maia
> > 
> > --  
> > Gustavo Maia
> 
> --  
> Gustavo Maia

---

<div class="post-metadata">

**Author:** ![Gustavo\_Maia](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/gustavo_maia/32/2183_2.png) [@Gustavo\_Maia](https://discuss.elastic.co/u/Gustavo_Maia)\
**Post date:** [November 23, 2011, 5:39pm UTC](https://discuss.elastic.co/t/plugin-error-0-18-4/5947/5 "2011-11-23T17:39:06Z")

</div>

There's something very strange. The problem is not with the filter  
plugin I made. Looking at the code has to realize that all the field  
is not being applied all filters.

Como falei antes apenas reiniciando o ES algumas vezes percebemos esse  
error. Os filtros passam a nao serem aplicados no campo all.

2011/11/23 Shay Banon [kimchy@gmail.com](mailto:kimchy@gmail.com):

> Nothing changed in 0.18.4 for this, is your plugin loaded properly?
> 
> On Tue, Nov 22, 2011 at 11:36 PM, Gustavo Maia [gustavobbmaia@gmail.com](mailto:gustavobbmaia@gmail.com)  
> wrote:
> 
> > For more info:
> > 
> > {  
> > "jurisindexname" : {  
> > "settings" : {  
> > "index.analysis.analyzer.documentofacetanalyzer.tokenizer" :  
> > "whitespace",  
> > "index.analysis.analyzer.notstemmeranalyzer.filter.0" :  
> > "accentFilter",  
> > "index.analysis.analyzer.notstemmeranalyzer.filter.1" : "standard",  
> > "index.analysis.filter.jus\_stop.type" : "stop",  
> > "index.analysis.filter.jus\_word\_delimiter.type\_table\_path" :  
> > "/opt/elasticsearch/config/delimiter.txt",  
> > "index.analysis.analyzer.notstemmeranalyzer.filter.4" : "jus\_stop",  
> > "index.analysis.filter.jus\_stop.enable\_position\_increments" :  
> > "false",  
> > "index.analysis.analyzer.notstemmeranalyzer.filter.3" : "lowercase",  
> > "index.analysis.analyzer.notstemmeranalyzer.filter.2" :  
> > "jus\_word\_delimiter",  
> > "index.number\_of\_replicas" : "1",  
> > "index.analysis.filter.jus\_word\_delimiter.catenate\_numbers" : "true",  
> > "index.analysis.analyzer.notstemmeranalyzer.tokenizer" :  
> > "whitespace",  
> > "index.analysis.filter.jus\_word\_delimiter.preserve\_original" :  
> > "true",  
> > "index.analysis.analyzer.patternanalyzer.pattern" : "##",  
> > "index.analysis.filter.jus\_word\_delimiter.catenate\_words" : "true",  
> > "index.analysis.filter.jus\_word\_delimiter.catenate\_all" : "true",  
> > "index.analysis.filter.jus\_word\_delimiter.split\_on\_numerics" :  
> > "true",  
> > "index.analysis.filter.jus\_stop.ignore\_case" : "true",  
> > "index.analysis.filter.jus\_stemmer.name" : "portuguese",  
> > "index.number\_of\_shards" : "2",  
> > "index.analysis.analyzer.documentochildanalyzer.tokenizer" :  
> > "whitespace",  
> > "index.analysis.filter.jus\_stop._lang_" : "brazilian",  
> > "index.analysis.analyzer.default.filter.5" : "jus\_stemmer",  
> > "index.analysis.analyzer.default.filter.3" : "lowercase",  
> > "index.analysis.analyzer.default.filter.4" : "jus\_stop",  
> > "index.analysis.analyzer.default.tokenizer" : "whitespace",  
> > "index.analysis.filter.jus\_word\_delimiter.type" : "word\_delimiter",  
> > "index.analysis.analyzer.default.filter.1" : "standard",  
> > "index.analysis.analyzer.default.filter.2" : "jus\_word\_delimiter",  
> > "index.analysis.analyzer.default.filter.0" : "accentFilter",  
> > "index.analysis.analyzer.patternanalyzer.type" : "pattern",  
> > "index.analysis.filter.jus\_stemmer.type" : "stemmer",  
> > "index.analysis.filter.jus\_stop.stopwords\_path" :  
> > "/opt/elasticsearch/config/stopwords.txt"  
> > }  
> > }  
> > }
> > 
> > 2011/11/22 Gustavo Maia [gustavobbmaia@gmail.com](mailto:gustavobbmaia@gmail.com):
> > 
> > > It was also detected that the configuration was not loaded delimiter.txt  
> > > too.  
> > > With the same problem, when restarting the ES sometimes stop working.
> > > 
> > > 2011/11/22 Gustavo Maia [gustavobbmaia@gmail.com](mailto:gustavobbmaia@gmail.com):
> > > 
> > > > Hello,
> > > > 
> > > > I'm having problems with my plugin to remove accent in the ES version  
> > > > 0.18.4.  
> > > > Sometimes I just restart the ES bin/elasticsearch -f and plugin stops  
> > > > working.  
> > > > Reinforcing I just stop and start the process of ES and the plugin  
> > > > stops working.  
> > > > Can anyone help me?
> > > > 
> > > > --  
> > > > Gustavo Maia
> > > 
> > > --  
> > > Gustavo Maia
> > 
> > --  
> > Gustavo Maia

--  
Gustavo Maia

---

<div class="post-metadata">

**Author:** ![Gustavo\_Maia](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/gustavo_maia/32/2183_2.png) [@Gustavo\_Maia](https://discuss.elastic.co/u/Gustavo_Maia)\
**Post date:** [November 23, 2011, 5:52pm UTC](https://discuss.elastic.co/t/plugin-error-0-18-4/5947/6 "2011-11-23T17:52:56Z")

</div>

Sorry, I has write in portuguese.

There's something very strange. The problem is not with the filter  
plugin. Looking at the code and sometimes not apply all filter in field all.

As I said before just restarting the ES sometimes perceive this error.  
The filters are not to be applied in all field.

2011/11/23 Gustavo Maia [gustavobbmaia@gmail.com](mailto:gustavobbmaia@gmail.com):

> There's something very strange. The problem is not with the filter  
> plugin I made. Looking at the code has to realize that all the field  
> is not being applied all filters.
> 
> Como falei antes apenas reiniciando o ES algumas vezes percebemos esse  
> error. Os filtros passam a nao serem aplicados no campo all.
> 
> 2011/11/23 Shay Banon [kimchy@gmail.com](mailto:kimchy@gmail.com):
> 
> > Nothing changed in 0.18.4 for this, is your plugin loaded properly?
> > 
> > On Tue, Nov 22, 2011 at 11:36 PM, Gustavo Maia [gustavobbmaia@gmail.com](mailto:gustavobbmaia@gmail.com)  
> > wrote:
> > 
> > > For more info:
> > > 
> > > {  
> > > "jurisindexname" : {  
> > > "settings" : {  
> > > "index.analysis.analyzer.documentofacetanalyzer.tokenizer" :  
> > > "whitespace",  
> > > "index.analysis.analyzer.notstemmeranalyzer.filter.0" :  
> > > "accentFilter",  
> > > "index.analysis.analyzer.notstemmeranalyzer.filter.1" : "standard",  
> > > "index.analysis.filter.jus\_stop.type" : "stop",  
> > > "index.analysis.filter.jus\_word\_delimiter.type\_table\_path" :  
> > > "/opt/elasticsearch/config/delimiter.txt",  
> > > "index.analysis.analyzer.notstemmeranalyzer.filter.4" : "jus\_stop",  
> > > "index.analysis.filter.jus\_stop.enable\_position\_increments" :  
> > > "false",  
> > > "index.analysis.analyzer.notstemmeranalyzer.filter.3" : "lowercase",  
> > > "index.analysis.analyzer.notstemmeranalyzer.filter.2" :  
> > > "jus\_word\_delimiter",  
> > > "index.number\_of\_replicas" : "1",  
> > > "index.analysis.filter.jus\_word\_delimiter.catenate\_numbers" : "true",  
> > > "index.analysis.analyzer.notstemmeranalyzer.tokenizer" :  
> > > "whitespace",  
> > > "index.analysis.filter.jus\_word\_delimiter.preserve\_original" :  
> > > "true",  
> > > "index.analysis.analyzer.patternanalyzer.pattern" : "##",  
> > > "index.analysis.filter.jus\_word\_delimiter.catenate\_words" : "true",  
> > > "index.analysis.filter.jus\_word\_delimiter.catenate\_all" : "true",  
> > > "index.analysis.filter.jus\_word\_delimiter.split\_on\_numerics" :  
> > > "true",  
> > > "index.analysis.filter.jus\_stop.ignore\_case" : "true",  
> > > "index.analysis.filter.jus\_stemmer.name" : "portuguese",  
> > > "index.number\_of\_shards" : "2",  
> > > "index.analysis.analyzer.documentochildanalyzer.tokenizer" :  
> > > "whitespace",  
> > > "index.analysis.filter.jus\_stop._lang_" : "brazilian",  
> > > "index.analysis.analyzer.default.filter.5" : "jus\_stemmer",  
> > > "index.analysis.analyzer.default.filter.3" : "lowercase",  
> > > "index.analysis.analyzer.default.filter.4" : "jus\_stop",  
> > > "index.analysis.analyzer.default.tokenizer" : "whitespace",  
> > > "index.analysis.filter.jus\_word\_delimiter.type" : "word\_delimiter",  
> > > "index.analysis.analyzer.default.filter.1" : "standard",  
> > > "index.analysis.analyzer.default.filter.2" : "jus\_word\_delimiter",  
> > > "index.analysis.analyzer.default.filter.0" : "accentFilter",  
> > > "index.analysis.analyzer.patternanalyzer.type" : "pattern",  
> > > "index.analysis.filter.jus\_stemmer.type" : "stemmer",  
> > > "index.analysis.filter.jus\_stop.stopwords\_path" :  
> > > "/opt/elasticsearch/config/stopwords.txt"  
> > > }  
> > > }  
> > > }
> > > 
> > > 2011/11/22 Gustavo Maia [gustavobbmaia@gmail.com](mailto:gustavobbmaia@gmail.com):
> > > 
> > > > It was also detected that the configuration was not loaded delimiter.txt  
> > > > too.  
> > > > With the same problem, when restarting the ES sometimes stop working.
> > > > 
> > > > 2011/11/22 Gustavo Maia [gustavobbmaia@gmail.com](mailto:gustavobbmaia@gmail.com):
> > > > 
> > > > > Hello,
> > > > > 
> > > > > I'm having problems with my plugin to remove accent in the ES version  
> > > > > 0.18.4.  
> > > > > Sometimes I just restart the ES bin/elasticsearch -f and plugin stops  
> > > > > working.  
> > > > > Reinforcing I just stop and start the process of ES and the plugin  
> > > > > stops working.  
> > > > > Can anyone help me?
> > > > > 
> > > > > --  
> > > > > Gustavo Maia
> > > > 
> > > > --  
> > > > Gustavo Maia
> > > 
> > > --  
> > > Gustavo Maia
> 
> --  
> Gustavo Maia

--  
Gustavo Maia

---

<div class="post-metadata">

**Author:** ![Gustavo\_Maia](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/gustavo_maia/32/2183_2.png) [@Gustavo\_Maia](https://discuss.elastic.co/u/Gustavo_Maia)\
**Post date:** [November 23, 2011, 7:48pm UTC](https://discuss.elastic.co/t/plugin-error-0-18-4/5947/7 "2011-11-23T19:48:24Z")

</div>

Hi, i found the problem.

Please look the class

org.elasticsearch.index.mapper.DocumentMapper.java

The order of rootMappers is very important because the  
this.rootMappers.put(AllFieldMapper.class, new AllFieldMapper());  
is need came after  
this.rootMappers.put(AnalyzerMapper.class, new AnalyzerMapper());

I change the Map of rootMappers to LinkedHashMap, and change the  
order of put in this map.

I need do it because in class AllFieldMapper.java the  
context.analyzer(), came null.

```
private Analyzer findAnalyzer(ParseContext context) {
    Analyzer analyzer = indexAnalyzer;
    if (analyzer == null) {
        analyzer = context.analyzer();
        if (analyzer == null) {
            analyzer = Lucene.STANDARD_ANALYZER;
        }
    }
    return analyzer;
}

```

look down:

private Map\<Class\<? extends RootMapper\>, RootMapper\> rootMappers = new  
LinkedHashMap\<Class\<? extends RootMapper\>, RootMapper\>();//  
Maps.newHashMap();

```
        this.rootMappers.put(IdFieldMapper.class, idFieldMapper);
        // add default mappers
        this.rootMappers.put(SizeFieldMapper.class, new SizeFieldMapper());
        this.rootMappers.put(IndexFieldMapper.class, new

```

IndexFieldMapper());  
this.rootMappers.put(SourceFieldMapper.class, new  
SourceFieldMapper());  
this.rootMappers.put(TypeFieldMapper.class, new TypeFieldMapper());  
this.rootMappers.put(AnalyzerMapper.class, new AnalyzerMapper());  
this.rootMappers.put(AllFieldMapper.class, new AllFieldMapper());  
this.rootMappers.put(BoostFieldMapper.class, new  
BoostFieldMapper());  
this.rootMappers.put(RoutingFieldMapper.class, new  
RoutingFieldMapper());  
this.rootMappers.put(TimestampFieldMapper.class, new  
TimestampFieldMapper());  
this.rootMappers.put(TTLFieldMapper.class, new TTLFieldMapper());  
this.rootMappers.put(UidFieldMapper.class, new UidFieldMapper());

I will put this bug in github.

2011/11/23 Gustavo Maia [gustavobbmaia@gmail.com](mailto:gustavobbmaia@gmail.com):

> Sorry, I has write in portuguese.
> 
> There's something very strange. The problem is not with the filter  
> plugin. Looking at the code and sometimes not apply all filter in field all.
> 
> As I said before just restarting the ES sometimes perceive this error.  
> The filters are not to be applied in all field.
> 
> 2011/11/23 Gustavo Maia [gustavobbmaia@gmail.com](mailto:gustavobbmaia@gmail.com):
> 
> > There's something very strange. The problem is not with the filter  
> > plugin I made. Looking at the code has to realize that all the field  
> > is not being applied all filters.
> > 
> > Como falei antes apenas reiniciando o ES algumas vezes percebemos esse  
> > error. Os filtros passam a nao serem aplicados no campo all.
> > 
> > 2011/11/23 Shay Banon [kimchy@gmail.com](mailto:kimchy@gmail.com):
> > 
> > > Nothing changed in 0.18.4 for this, is your plugin loaded properly?
> > > 
> > > On Tue, Nov 22, 2011 at 11:36 PM, Gustavo Maia [gustavobbmaia@gmail.com](mailto:gustavobbmaia@gmail.com)  
> > > wrote:
> > > 
> > > > For more info:
> > > > 
> > > > {  
> > > > "jurisindexname" : {  
> > > > "settings" : {  
> > > > "index.analysis.analyzer.documentofacetanalyzer.tokenizer" :  
> > > > "whitespace",  
> > > > "index.analysis.analyzer.notstemmeranalyzer.filter.0" :  
> > > > "accentFilter",  
> > > > "index.analysis.analyzer.notstemmeranalyzer.filter.1" : "standard",  
> > > > "index.analysis.filter.jus\_stop.type" : "stop",  
> > > > "index.analysis.filter.jus\_word\_delimiter.type\_table\_path" :  
> > > > "/opt/elasticsearch/config/delimiter.txt",  
> > > > "index.analysis.analyzer.notstemmeranalyzer.filter.4" : "jus\_stop",  
> > > > "index.analysis.filter.jus\_stop.enable\_position\_increments" :  
> > > > "false",  
> > > > "index.analysis.analyzer.notstemmeranalyzer.filter.3" : "lowercase",  
> > > > "index.analysis.analyzer.notstemmeranalyzer.filter.2" :  
> > > > "jus\_word\_delimiter",  
> > > > "index.number\_of\_replicas" : "1",  
> > > > "index.analysis.filter.jus\_word\_delimiter.catenate\_numbers" : "true",  
> > > > "index.analysis.analyzer.notstemmeranalyzer.tokenizer" :  
> > > > "whitespace",  
> > > > "index.analysis.filter.jus\_word\_delimiter.preserve\_original" :  
> > > > "true",  
> > > > "index.analysis.analyzer.patternanalyzer.pattern" : "##",  
> > > > "index.analysis.filter.jus\_word\_delimiter.catenate\_words" : "true",  
> > > > "index.analysis.filter.jus\_word\_delimiter.catenate\_all" : "true",  
> > > > "index.analysis.filter.jus\_word\_delimiter.split\_on\_numerics" :  
> > > > "true",  
> > > > "index.analysis.filter.jus\_stop.ignore\_case" : "true",  
> > > > "index.analysis.filter.jus\_stemmer.name" : "portuguese",  
> > > > "index.number\_of\_shards" : "2",  
> > > > "index.analysis.analyzer.documentochildanalyzer.tokenizer" :  
> > > > "whitespace",  
> > > > "index.analysis.filter.jus\_stop._lang_" : "brazilian",  
> > > > "index.analysis.analyzer.default.filter.5" : "jus\_stemmer",  
> > > > "index.analysis.analyzer.default.filter.3" : "lowercase",  
> > > > "index.analysis.analyzer.default.filter.4" : "jus\_stop",  
> > > > "index.analysis.analyzer.default.tokenizer" : "whitespace",  
> > > > "index.analysis.filter.jus\_word\_delimiter.type" : "word\_delimiter",  
> > > > "index.analysis.analyzer.default.filter.1" : "standard",  
> > > > "index.analysis.analyzer.default.filter.2" : "jus\_word\_delimiter",  
> > > > "index.analysis.analyzer.default.filter.0" : "accentFilter",  
> > > > "index.analysis.analyzer.patternanalyzer.type" : "pattern",  
> > > > "index.analysis.filter.jus\_stemmer.type" : "stemmer",  
> > > > "index.analysis.filter.jus\_stop.stopwords\_path" :  
> > > > "/opt/elasticsearch/config/stopwords.txt"  
> > > > }  
> > > > }  
> > > > }
> > > > 
> > > > 2011/11/22 Gustavo Maia [gustavobbmaia@gmail.com](mailto:gustavobbmaia@gmail.com):
> > > > 
> > > > > It was also detected that the configuration was not loaded delimiter.txt  
> > > > > too.  
> > > > > With the same problem, when restarting the ES sometimes stop working.
> > > > > 
> > > > > 2011/11/22 Gustavo Maia [gustavobbmaia@gmail.com](mailto:gustavobbmaia@gmail.com):
> > > > > 
> > > > > > Hello,
> > > > > > 
> > > > > > I'm having problems with my plugin to remove accent in the ES version  
> > > > > > 0.18.4.  
> > > > > > Sometimes I just restart the ES bin/elasticsearch -f and plugin stops  
> > > > > > working.  
> > > > > > Reinforcing I just stop and start the process of ES and the plugin  
> > > > > > stops working.  
> > > > > > Can anyone help me?
> > > > > > 
> > > > > > --  
> > > > > > Gustavo Maia
> > > > > 
> > > > > --  
> > > > > Gustavo Maia
> > > > 
> > > > --  
> > > > Gustavo Maia
> > 
> > --  
> > Gustavo Maia
> 
> --  
> Gustavo Maia

--  
Gustavo Maia

---

<div class="post-metadata">

**Author:** ![Gustavo\_Maia](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/gustavo_maia/32/2183_2.png) [@Gustavo\_Maia](https://discuss.elastic.co/u/Gustavo_Maia)\
**Post date:** [November 24, 2011, 12:54am UTC](https://discuss.elastic.co/t/plugin-error-0-18-4/5947/8 "2011-11-24T00:54:11Z")

</div>

The bug on github:

> <https://github.com/elastic/elasticsearch/issues/1493>
>
> It was some problems when you restart the ES and noticed that some filters were …not being applied on all field.
> It was observed that the class AllFieldMapper, in the line 182
> \<pre\> analyzer = context.analyzer(); \</pre\>
> this analyzer was null.
> 
> So I went deeper and noticed that the class DocumentMapper Map rootMappers The order of the objects changed, sometimes
> 
> \<pre\>
> this.rootMappers.put (AllFieldMapper.class, new AllFieldMapper());
> came before the
> this.rootMappers.put (AnalyzerMapper.class, new AnalyzerMapper());
> soon context.analyzer () class was null.
> \</pre\>
> 
> I changed the order of the puts and also changed the Map of rootMappers, I started using a LinkedHashMap.
> 
> Below is the change in class DocumentMapper.
> 
> Line: 136
> 
> \<pre\>
> private Map \<Class \<? extends RootMapper\>, RootMapper\> rootMappers = new LinkedHashMap \<Class \<? extends RootMapper\>, RootMapper \>();// Maps.newHashMap ();
> \</pre\>
> 
> Line: 171
> 
> \<pre\>
> this.rootMappers.put (SourceFieldMapper.class, new SourceFieldMapper());
> this.rootMappers.put (TypeFieldMapper.class, new TypeFieldMapper());
> this.rootMappers.put (AnalyzerMapper.class, new AnalyzerMapper());
> this.rootMappers.put (AllFieldMapper.class, new AllFieldMapper());
> this.rootMappers.put (BoostFieldMapper.class, new BoostFieldMapper());
> this.rootMappers.put (RoutingFieldMapper.class, new RoutingFieldMapper());
> \</pre\>

2011/11/23 Gustavo Maia [gustavobbmaia@gmail.com](mailto:gustavobbmaia@gmail.com):

> Hi, i found the problem.
> 
> Please look the class
> 
> org.elasticsearch.index.mapper.DocumentMapper.java
> 
> The order of rootMappers is very important because the  
> this.rootMappers.put(AllFieldMapper.class, new AllFieldMapper());  
> is need came after  
> this.rootMappers.put(AnalyzerMapper.class, new AnalyzerMapper());
> 
> I change the Map of rootMappers to LinkedHashMap, and change the  
> order of put in this map.
> 
> I need do it because in class AllFieldMapper.java the  
> context.analyzer(), came null.
> 
> private Analyzer findAnalyzer(ParseContext context) {  
> Analyzer analyzer = indexAnalyzer;  
> if (analyzer == null) {  
> analyzer = context.analyzer();  
> if (analyzer == null) {  
> analyzer = Lucene.STANDARD\_ANALYZER;  
> }  
> }  
> return analyzer;  
> }
> 
> look down:
> 
> private Map\<Class\<? extends RootMapper\>, RootMapper\> rootMappers = new  
> LinkedHashMap\<Class\<? extends RootMapper\>, RootMapper\>();//  
> Maps.newHashMap();
> 
> ```
> this.rootMappers.put(IdFieldMapper.class, idFieldMapper);
> // add default mappers
> this.rootMappers.put(SizeFieldMapper.class, new SizeFieldMapper());
> this.rootMappers.put(IndexFieldMapper.class, new
> 
> ```
> 
> IndexFieldMapper());  
> this.rootMappers.put(SourceFieldMapper.class, new  
> SourceFieldMapper());  
> this.rootMappers.put(TypeFieldMapper.class, new TypeFieldMapper());  
> this.rootMappers.put(AnalyzerMapper.class, new AnalyzerMapper());  
> this.rootMappers.put(AllFieldMapper.class, new AllFieldMapper());  
> this.rootMappers.put(BoostFieldMapper.class, new  
> BoostFieldMapper());  
> this.rootMappers.put(RoutingFieldMapper.class, new  
> RoutingFieldMapper());  
> this.rootMappers.put(TimestampFieldMapper.class, new  
> TimestampFieldMapper());  
> this.rootMappers.put(TTLFieldMapper.class, new TTLFieldMapper());  
> this.rootMappers.put(UidFieldMapper.class, new UidFieldMapper());
> 
> I will put this bug in github.
> 
> 2011/11/23 Gustavo Maia [gustavobbmaia@gmail.com](mailto:gustavobbmaia@gmail.com):
> 
> > Sorry, I has write in portuguese.
> > 
> > There's something very strange. The problem is not with the filter  
> > plugin. Looking at the code and sometimes not apply all filter in field all.
> > 
> > As I said before just restarting the ES sometimes perceive this error.  
> > The filters are not to be applied in all field.
> > 
> > 2011/11/23 Gustavo Maia [gustavobbmaia@gmail.com](mailto:gustavobbmaia@gmail.com):
> > 
> > > There's something very strange. The problem is not with the filter  
> > > plugin I made. Looking at the code has to realize that all the field  
> > > is not being applied all filters.
> > > 
> > > Como falei antes apenas reiniciando o ES algumas vezes percebemos esse  
> > > error. Os filtros passam a nao serem aplicados no campo all.
> > > 
> > > 2011/11/23 Shay Banon [kimchy@gmail.com](mailto:kimchy@gmail.com):
> > > 
> > > > Nothing changed in 0.18.4 for this, is your plugin loaded properly?
> > > > 
> > > > On Tue, Nov 22, 2011 at 11:36 PM, Gustavo Maia [gustavobbmaia@gmail.com](mailto:gustavobbmaia@gmail.com)  
> > > > wrote:
> > > > 
> > > > > For more info:
> > > > > 
> > > > > {  
> > > > > "jurisindexname" : {  
> > > > > "settings" : {  
> > > > > "index.analysis.analyzer.documentofacetanalyzer.tokenizer" :  
> > > > > "whitespace",  
> > > > > "index.analysis.analyzer.notstemmeranalyzer.filter.0" :  
> > > > > "accentFilter",  
> > > > > "index.analysis.analyzer.notstemmeranalyzer.filter.1" : "standard",  
> > > > > "index.analysis.filter.jus\_stop.type" : "stop",  
> > > > > "index.analysis.filter.jus\_word\_delimiter.type\_table\_path" :  
> > > > > "/opt/elasticsearch/config/delimiter.txt",  
> > > > > "index.analysis.analyzer.notstemmeranalyzer.filter.4" : "jus\_stop",  
> > > > > "index.analysis.filter.jus\_stop.enable\_position\_increments" :  
> > > > > "false",  
> > > > > "index.analysis.analyzer.notstemmeranalyzer.filter.3" : "lowercase",  
> > > > > "index.analysis.analyzer.notstemmeranalyzer.filter.2" :  
> > > > > "jus\_word\_delimiter",  
> > > > > "index.number\_of\_replicas" : "1",  
> > > > > "index.analysis.filter.jus\_word\_delimiter.catenate\_numbers" : "true",  
> > > > > "index.analysis.analyzer.notstemmeranalyzer.tokenizer" :  
> > > > > "whitespace",  
> > > > > "index.analysis.filter.jus\_word\_delimiter.preserve\_original" :  
> > > > > "true",  
> > > > > "index.analysis.analyzer.patternanalyzer.pattern" : "##",  
> > > > > "index.analysis.filter.jus\_word\_delimiter.catenate\_words" : "true",  
> > > > > "index.analysis.filter.jus\_word\_delimiter.catenate\_all" : "true",  
> > > > > "index.analysis.filter.jus\_word\_delimiter.split\_on\_numerics" :  
> > > > > "true",  
> > > > > "index.analysis.filter.jus\_stop.ignore\_case" : "true",  
> > > > > "index.analysis.filter.jus\_stemmer.name" : "portuguese",  
> > > > > "index.number\_of\_shards" : "2",  
> > > > > "index.analysis.analyzer.documentochildanalyzer.tokenizer" :  
> > > > > "whitespace",  
> > > > > "index.analysis.filter.jus\_stop._lang_" : "brazilian",  
> > > > > "index.analysis.analyzer.default.filter.5" : "jus\_stemmer",  
> > > > > "index.analysis.analyzer.default.filter.3" : "lowercase",  
> > > > > "index.analysis.analyzer.default.filter.4" : "jus\_stop",  
> > > > > "index.analysis.analyzer.default.tokenizer" : "whitespace",  
> > > > > "index.analysis.filter.jus\_word\_delimiter.type" : "word\_delimiter",  
> > > > > "index.analysis.analyzer.default.filter.1" : "standard",  
> > > > > "index.analysis.analyzer.default.filter.2" : "jus\_word\_delimiter",  
> > > > > "index.analysis.analyzer.default.filter.0" : "accentFilter",  
> > > > > "index.analysis.analyzer.patternanalyzer.type" : "pattern",  
> > > > > "index.analysis.filter.jus\_stemmer.type" : "stemmer",  
> > > > > "index.analysis.filter.jus\_stop.stopwords\_path" :  
> > > > > "/opt/elasticsearch/config/stopwords.txt"  
> > > > > }  
> > > > > }  
> > > > > }
> > > > > 
> > > > > 2011/11/22 Gustavo Maia [gustavobbmaia@gmail.com](mailto:gustavobbmaia@gmail.com):
> > > > > 
> > > > > > It was also detected that the configuration was not loaded delimiter.txt  
> > > > > > too.  
> > > > > > With the same problem, when restarting the ES sometimes stop working.
> > > > > > 
> > > > > > 2011/11/22 Gustavo Maia [gustavobbmaia@gmail.com](mailto:gustavobbmaia@gmail.com):
> > > > > > 
> > > > > > > Hello,
> > > > > > > 
> > > > > > > I'm having problems with my plugin to remove accent in the ES version  
> > > > > > > 0.18.4.  
> > > > > > > Sometimes I just restart the ES bin/elasticsearch -f and plugin stops  
> > > > > > > working.  
> > > > > > > Reinforcing I just stop and start the process of ES and the plugin  
> > > > > > > stops working.  
> > > > > > > Can anyone help me?
> > > > > > > 
> > > > > > > --  
> > > > > > > Gustavo Maia
> > > > > > 
> > > > > > --  
> > > > > > Gustavo Maia
> > > > > 
> > > > > --  
> > > > > Gustavo Maia
> > > 
> > > --  
> > > Gustavo Maia
> > 
> > --  
> > Gustavo Maia
> 
> --  
> Gustavo Maia

--  
Gustavo Maia

---

<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:47am UTC](https://discuss.elastic.co/t/plugin-error-0-18-4/5947/9 "2017-07-06T03:47:39Z")

</div>

Closed on July 6, 2017, 3:47am UTC


