# Reindex after adding char\_filter

**URL:** https://discuss.elastic.co/t/reindex-after-adding-char-filter/17905
**Category:** Elasticsearch
**Created:** [June 4, 2014, 12:19pm UTC](https://discuss.elastic.co/t/reindex-after-adding-char-filter/17905 "2014-06-04T12:19:40Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Kirill\_Teplinskiy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kirill_teplinskiy/32/1517_2.png) [@Kirill\_Teplinskiy](https://discuss.elastic.co/u/Kirill_Teplinskiy)
#### Post date: [June 4, 2014, 12:19pm UTC](https://discuss.elastic.co/t/reindex-after-adding-char-filter/17905/1 "2014-06-04T12:19:40Z")

</div>

Hello everyone!

I can't understand do I need to reindex documents after adding char\_filter  
to existing analyzer or not. My experiment shows char\_filter starts to  
work without reindex and this is surprise for me. Can anyone explain how  
it works please? Here are steps of my experiment, I use ElasticSearch  
0.90.13.

1. Configure analyzer:

test1 :  
tokenizer : standard  
filter : [lowercase]

1. Add thousand of documents to index:

{"name": "apple 0"}  
{"name": "apple 1"}  
{"name": "apple 2"}  
...  
{"name": "apple 999"}

Field "name" is analyzed by analyzer "test1".

1. Add mapping char\_filter to analyzer and restart ElasticSearch. This is  
char\_filter configuration:

char\_filter :  
ab:  
type: mapping  
mappings: ["a=\>b"]

1. Query with text "bplle" returns results (and "apple" too)!

{  
"query": {  
"match": {  
"name": "bpple"  
}  
}  
}

Moreover, when I remove char\_filter from analyzer it continues to find  
"bplle" but stops find "apple". This confuses me too.

--  
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/312275a4-4f34-466a-a97c-8bb0d752822a%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/312275a4-4f34-466a-a97c-8bb0d752822a%40googlegroups.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, 1:24am UTC](https://discuss.elastic.co/t/reindex-after-adding-char-filter/17905/2 "2017-07-06T01:24:44Z")

</div>


