# How to set snowball analyzer for \_all field

**URL:** <https://discuss.elastic.co/t/how-to-set-snowball-analyzer-for--all-field/8798>\
**Category:** Elasticsearch\
**Created:** [August 21, 2012, 10:43am UTC](https://discuss.elastic.co/t/how-to-set-snowball-analyzer-for--all-field/8798 "2012-08-21T10:43:37Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![kiruba\_2](https://avatars.discourse-cdn.com/v4/letter/k/e79b87/32.png) [@kiruba\_2](https://discuss.elastic.co/u/kiruba_2)\
**Post date:** [August 21, 2012, 10:43am UTC](https://discuss.elastic.co/t/how-to-set-snowball-analyzer-for--all-field/8798/1 "2012-08-21T10:43:37Z")

</div>

this is my mappings

curl -XPOST localhost:9200/twitter  
curl -XPUT '[http://localhost:9200/twitter/tweet/\_mapping](http://localhost:9200/twitter/tweet/_mapping)' -d '  
{  
"tweet" : {  
"\_all":{  
"enabled":"true",  
"index\_anaylzer":"snowball",  
"search\_anaylzer":"snowball"  
},  
"properties" : {  
"message" : {  
"type" : "string",  
"search\_analyzer" : "standard",  
"index\_analyzer" : "standard"  
}  
}  
}  
}'  
and i indexed message values as\* curl -XPUT  
'[http://localhost:9200/twitter/tweet/1](http://localhost:9200/twitter/tweet/1)' -d '{\*

- "message" : "Look, a fighting War-Unicorn!"\*  
_}'_

_curl -XGET localhost:9200/twitter/\_search?pretty=true&q=fight_ - this  
query is search only \_all field but i didn't get any result .

what i need . if i search q=fight then the result will need to show.?

thanks

--

---

<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:15am UTC](https://discuss.elastic.co/t/how-to-set-snowball-analyzer-for--all-field/8798/2 "2017-07-06T03:15:42Z")

</div>


