# How to use stopword elasticsearch

**URL:** <https://discuss.elastic.co/t/how-to-use-stopword-elasticsearch/23205>\
**Category:** Elasticsearch\
**Created:** [April 13, 2015, 4:48am UTC](https://discuss.elastic.co/t/how-to-use-stopword-elasticsearch/23205 "2015-04-13T04:48:13Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![apert](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/apert/32/779_2.png) [@apert](https://discuss.elastic.co/u/apert)\
**Post date:** [April 13, 2015, 4:48am UTC](https://discuss.elastic.co/t/how-to-use-stopword-elasticsearch/23205/1 "2015-04-13T04:48:13Z")

</div>

i have a Elasticsearch 1.5 running on my server,

specifically i want/create three field with is 1.name field 2.description 3.nickname

i want setup stopword for decription and nickname field ,when i insert the data on the Elasticsearch then stop word automatically remove unwanted stopword. im trying so many time but not working.

curl -X POST [http://127.0.0.1:9200/tryoindex/](http://127.0.0.1:9200/tryoindex/) -d'  
{  
"settings": {  
"analysis": {  
"filter": {  
"custom\_english\_stemmer": {  
"type": "stemmer",  
"name": "english"  
},  
"snowball": {  
"type" : "snowball",  
"language" : "English"  
}  
},  
"analyzer": {  
"custom\_lowercase\_stemmed": {  
"tokenizer": "standard",  
"filter": [  
"lowercase",  
"custom\_english\_stemmer",  
"snowball"  
]  
}  
}  
}  
},  
"mappings": {  
"test": {  
"\_all" : {"enabled" : true},  
"properties": {  
"text": {  
"type": "string",  
"analyzer": "custom\_lowercase\_stemmed"  
}  
}  
}  
}  
}'

curl -X POST "[http://localhost:9200/tryoindex/nama/1](http://localhost:9200/tryoindex/nama/1)" -d '{  
"text" : "Tryolabs running monkeys KANGAROOS and jumping elephants jum is your"  
}'

curl "[http://localhost:9200/tryoindex/nama/\_search?pretty=1](http://localhost:9200/tryoindex/nama/_search?pretty=1)" -d '{  
"query": {  
"query\_string": {  
"query": "Tryolabs running monkeys KANGAROOS and jumping elephants jum is your",  
"fields": ["text"]  
}  
}  
}'

---

<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, 12:20am UTC](https://discuss.elastic.co/t/how-to-use-stopword-elasticsearch/23205/2 "2017-07-06T00:20:10Z")

</div>


