# Stop Words something missing

**URL:** <https://discuss.elastic.co/t/stop-words-something-missing/258504>\
**Category:** Elasticsearch\
**Created:** [December 13, 2020, 12:54pm UTC](https://discuss.elastic.co/t/stop-words-something-missing/258504 "2020-12-13T12:54:07Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ElGringo](https://avatars.discourse-cdn.com/v4/letter/e/35a633/32.png) [@ElGringo](https://discuss.elastic.co/u/ElGringo)\
**Post date:** [December 13, 2020, 12:54pm UTC](https://discuss.elastic.co/t/stop-words-something-missing/258504/1 "2020-12-13T12:54:07Z")

</div>

Hi, I'm trying to use stop words with ELK, everything seems ok but when I'm inserting a new value the filter does not apply. Using \_analyze it works ...  
I think something is wrong in my mapping but I don't find what. Thank's for your help.

`  
DELETE /my\_index

PUT /my\_index  
{  
"settings": {  
"analysis": {  
"analyzer": {  
"filtre\_twitter": {  
"tokenizer": "standard",  
"filter": ["my\_twitter\_filter", "uppercase"]  
}  
},  
"filter": {  
"my\_twitter\_filter": {  
"type": "stop",  
"ignore\_case": true,  
"stopwords": ["and", "is", "the", "to", "all"]  
}  
}  
}  
},  
"mappings": {  
"properties": {  
"mon\_champ": {  
"type" : "text",  
"analyzer": "filtre\_twitter"  
}  
}  
}  
}

GET /my\_index/\_mappings

POST /my\_index/\_doc  
{  
"mon\_champ": "AAA and BBB is CCC the DDD This is an example of the english analyzer"  
}

=\> Don't work

GET /my\_index/\_search  
{  
"query": {  
"match\_all": {}  
}  
}

POST /my\_index/\_analyze  
{  
"analyzer": "filtre\_twitter",  
"text": "AAA and BBB is CCC the DDD This is an example of the english analyzer"  
}

=\> Works ?!?

`

---

<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:** [January 10, 2021, 12:54pm UTC](https://discuss.elastic.co/t/stop-words-something-missing/258504/2 "2021-01-10T12:54:14Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
