# Index analyzer config

**URL:** <https://discuss.elastic.co/t/index-analyzer-config/5857>\
**Category:** Elasticsearch\
**Created:** [November 12, 2011, 9:57am UTC](https://discuss.elastic.co/t/index-analyzer-config/5857 "2011-11-12T09:57:59Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![chuter](https://avatars.discourse-cdn.com/v4/letter/c/f04885/32.png) [@chuter](https://discuss.elastic.co/u/chuter)\
**Post date:** [November 12, 2011, 9:57am UTC](https://discuss.elastic.co/t/index-analyzer-config/5857/1 "2011-11-12T09:57:59Z")

</div>

Hi ALL,

If i config the specific analyzer(my own analyzer) for fields of one index,  
does it mean the specific analyzer will be used when searching use the fields?

i.e.:  
mapping use below:

curl -XPUT '[http://localhost:9200/twitter/tweet/\_mapping](http://localhost:9200/twitter/tweet/_mapping)' -d '  
{  
"tweet" : {  
"properties" : {  
"message" : {"type":"string", "index":"analyzed", "analyzer":"wintim-dict-based-analyzer"}  
}  
}  
}  
'  
use the follow query to search:

###### q=message:(whatever)&pretty=true

---

<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:49am UTC](https://discuss.elastic.co/t/index-analyzer-config/5857/2 "2017-07-06T03:49:01Z")

</div>


