# Search\_analyzer explanation

**URL:** <https://discuss.elastic.co/t/search-analyzer-explanation/7942>\
**Category:** Elasticsearch\
**Created:** [June 1, 2012, 5:48pm UTC](https://discuss.elastic.co/t/search-analyzer-explanation/7942 "2012-06-01T17:48:30Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jdolecki](https://avatars.discourse-cdn.com/v4/letter/j/e495f1/32.png) [@jdolecki](https://discuss.elastic.co/u/jdolecki)\
**Post date:** [June 1, 2012, 5:48pm UTC](https://discuss.elastic.co/t/search-analyzer-explanation/7942/1 "2012-06-01T17:48:30Z")

</div>

Hey,

I'm curious about the difference between specifying a search\_analyzer on a field and specifying an analyzer in a query\_string call to the API. My indication is that they are the same. So, if my mapping looks like the following:  
...  
"mapping": {  
"boost": 1.0,  
'index': 'analyzed',  
'store': 'yes',  
"type": "multi\_field",  
"fields": {  
"{name}": {"type": "{dynamic\_type}"},  
"ngram": {  
"include\_in\_all": False,  
"index\_analyzer": "ngram",  
"search\_analyzer": "standard",  
"type": "string"  
},  
"edgengram": {  
"include\_in\_all": False,  
"index\_analyzer": "edgengram",  
"search\_analyzer": "standard",  
"type": "string"  
},  
"snowball": {  
"include\_in\_all": False,  
"analyzer": "snowball",  
"type": "string"  
}  
}

then my custom fields will be analyzed by my custom analyzers, and a search query will be analyzed by the standard analyzer?

---

<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:26am UTC](https://discuss.elastic.co/t/search-analyzer-explanation/7942/2 "2017-07-06T03:26:00Z")

</div>


