# Elasticsearch Foreign Language Stop-words

**URL:** <https://discuss.elastic.co/t/elasticsearch-foreign-language-stop-words/12975>\
**Category:** Elasticsearch\
**Created:** [July 28, 2013, 5:08pm UTC](https://discuss.elastic.co/t/elasticsearch-foreign-language-stop-words/12975 "2013-07-28T17:08:50Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Aaron\_Troy](https://avatars.discourse-cdn.com/v4/letter/a/5e9695/32.png) [@Aaron\_Troy](https://discuss.elastic.co/u/Aaron_Troy)\
**Post date:** [July 28, 2013, 5:08pm UTC](https://discuss.elastic.co/t/elasticsearch-foreign-language-stop-words/12975/1 "2013-07-28T17:08:50Z")

</div>

I'm new to Elasticsearch and am trying to spin up with some testing,  
however I'm running into an issue when it comes to using (for this case) a  
French analyzer and stop words. This is the index I have set up:

test1: {

```
state: open
settings: {
    index.analysis.analyzer.french.tokenizer: standard
    index.analysis.filter.stop_fr.stopwords.0: _french_
    index.analysis.filter.stop_fr.type: stop
    index.analysis.analyzer.french.filter.1: stop_fr
    index.analysis.analyzer.french.filter.0: lowercase
    index.analysis.analyzer.french.type: custom
    index.number_of_shards: 5
    index.number_of_replicas: 1
    index.version.created: 900299
}

```

However, when I run the 'Test Analyser' tool from ES Head, the French stop  
words are still getting through while English stop words (the, a, etc..)  
aren't. Any insight would be greatly appreciated. Thanks!

--  
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).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![javanna](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/javanna/32/4698_2.png) [@javanna](https://discuss.elastic.co/u/javanna)\
**Post date:** [July 29, 2013, 10:33am UTC](https://discuss.elastic.co/t/elasticsearch-foreign-language-stop-words/12975/2 "2013-07-29T10:33:28Z")

</div>

Hi Aaron,  
as somebody answered on stackoverflow[http://stackoverflow.com/questions/17910563/elasticsearch-foreign-language-stop-words](http://stackoverflow.com/questions/17910563/elasticsearch-foreign-language-stop-words)to the same question, it seems that you have defined your french analyzer  
in your index settings, but you should also use it in your mapping, to make  
the connection between your fields where you want to use that analyzer and  
the analyzer that you defined.

You can specify your mapping either while creating the index using the  
create index api, or using the put mapping api afterwards (as long as you  
make backward compatible changes).

Cheers  
Luca

On Sunday, July 28, 2013 7:08:50 PM UTC+2, Aaron Troy wrote:

> I'm new to Elasticsearch and am trying to spin up with some testing,  
> however I'm running into an issue when it comes to using (for this case) a  
> French analyzer and stop words. This is the index I have set up:
> 
> test1: {
> 
> ```
> state: open
> settings: {
> index.analysis.analyzer.french.tokenizer: standard
> index.analysis.filter.stop_fr.stopwords.0: _french_
> index.analysis.filter.stop_fr.type: stop
> index.analysis.analyzer.french.filter.1: stop_fr
> index.analysis.analyzer.french.filter.0: lowercase
> index.analysis.analyzer.french.type: custom
> index.number_of_shards: 5
> index.number_of_replicas: 1
> index.version.created: 900299
> }
> 
> ```
> 
> However, when I run the 'Test Analyser' tool from ES Head, the French stop  
> words are still getting through while English stop words (the, a, etc..)  
> aren't. Any insight would be greatly appreciated. Thanks!

--  
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).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<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, 2:24am UTC](https://discuss.elastic.co/t/elasticsearch-foreign-language-stop-words/12975/3 "2017-07-06T02:24:03Z")

</div>


