# How to use stopword elasticsearch

**URL:** <https://discuss.elastic.co/t/how-to-use-stopword-elasticsearch/23206>\
**Category:** Elasticsearch\
**Created:** [April 13, 2015, 4:49am UTC](https://discuss.elastic.co/t/how-to-use-stopword-elasticsearch/23206 "2015-04-13T04:49:56Z")\
**Posts on this page:** 4\
**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:49am UTC](https://discuss.elastic.co/t/how-to-use-stopword-elasticsearch/23206/1 "2015-04-13T04:49:56Z")

</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"]  
}  
}  
}'

--  
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/5519a372-4ca5-4149-8ba2-acb6f18153c0%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/5519a372-4ca5-4149-8ba2-acb6f18153c0%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [April 13, 2015, 5:33am UTC](https://discuss.elastic.co/t/how-to-use-stopword-elasticsearch/23206/2 "2015-04-13T05:33:56Z")

</div>

Take a look at  
[Stop analyzer | Elasticsearch Guide [8.11] | Elastic](http://www.elastic.co/guide/en/elasticsearch/reference/current/analysis-stop-analyzer.html),  
it looks like you need to define the words you want to stop.

On 13 April 2015 at 14:49, Mohd Syafiq [syafiqapit2002@gmail.com](mailto:syafiqapit2002@gmail.com) wrote:

> 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"]  
> }  
> }  
> }'
> 
> --  
> 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/5519a372-4ca5-4149-8ba2-acb6f18153c0%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/5519a372-4ca5-4149-8ba2-acb6f18153c0%40googlegroups.com)  
> [https://groups.google.com/d/msgid/elasticsearch/5519a372-4ca5-4149-8ba2-acb6f18153c0%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/5519a372-4ca5-4149-8ba2-acb6f18153c0%40googlegroups.com?utm_medium=email&utm_source=footer)  
> .  
> For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
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/CAEYi1X9q%2BsqPK2\_riKUpO8zEtaaf3w2cCdA60py8XZ1CkiVn1g%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAEYi1X9q%2BsqPK2_riKUpO8zEtaaf3w2cCdA60py8XZ1CkiVn1g%40mail.gmail.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<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, 6:38am UTC](https://discuss.elastic.co/t/how-to-use-stopword-elasticsearch/23206/3 "2015-04-13T06:38:54Z")

</div>

i already do some codes and try run it's but when i view using head plugin  
, the "is" "the" word in index still appear

On Mon, Apr 13, 2015 at 1:33 PM, Mark Walkom [markwalkom@gmail.com](mailto:markwalkom@gmail.com) wrote:

> Take a look at  
> [Stop analyzer | Elasticsearch Guide [8.11] | Elastic](http://www.elastic.co/guide/en/elasticsearch/reference/current/analysis-stop-analyzer.html),  
> it looks like you need to define the words you want to stop.
> 
> On 13 April 2015 at 14:49, Mohd Syafiq [syafiqapit2002@gmail.com](mailto:syafiqapit2002@gmail.com) wrote:
> 
> > 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"]  
> > }  
> > }  
> > }'
> > 
> > --  
> > 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/5519a372-4ca5-4149-8ba2-acb6f18153c0%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/5519a372-4ca5-4149-8ba2-acb6f18153c0%40googlegroups.com)  
> > [https://groups.google.com/d/msgid/elasticsearch/5519a372-4ca5-4149-8ba2-acb6f18153c0%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/5519a372-4ca5-4149-8ba2-acb6f18153c0%40googlegroups.com?utm_medium=email&utm_source=footer)  
> > .  
> > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).
> 
> --  
> You received this message because you are subscribed to a topic in the  
> Google Groups "elasticsearch" group.  
> To unsubscribe from this topic, visit  
> [https://groups.google.com/d/topic/elasticsearch/FLMjlTsa-Q0/unsubscribe](https://groups.google.com/d/topic/elasticsearch/FLMjlTsa-Q0/unsubscribe).  
> To unsubscribe from this group and all its topics, 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/CAEYi1X9q%2BsqPK2\_riKUpO8zEtaaf3w2cCdA60py8XZ1CkiVn1g%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAEYi1X9q%2BsqPK2_riKUpO8zEtaaf3w2cCdA60py8XZ1CkiVn1g%40mail.gmail.com)  
> [https://groups.google.com/d/msgid/elasticsearch/CAEYi1X9q%2BsqPK2\_riKUpO8zEtaaf3w2cCdA60py8XZ1CkiVn1g%40mail.gmail.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/CAEYi1X9q%2BsqPK2_riKUpO8zEtaaf3w2cCdA60py8XZ1CkiVn1g%40mail.gmail.com?utm_medium=email&utm_source=footer)  
> .
> 
> For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
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/CAK9TPB4SXo5Li4GQPHA2QXEKaR0\_ydUwb3%3DNj8U-hJpO8xfKnA%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAK9TPB4SXo5Li4GQPHA2QXEKaR0_ydUwb3%3DNj8U-hJpO8xfKnA%40mail.gmail.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, 12:20am UTC](https://discuss.elastic.co/t/how-to-use-stopword-elasticsearch/23206/4 "2017-07-06T00:20:09Z")

</div>


