# Language analyzer en français

**URL:** <https://discuss.elastic.co/t/language-analyzer-en-francais/41045>\
**Category:** Discussions en français\
**Created:** [February 5, 2016, 10:12am UTC](https://discuss.elastic.co/t/language-analyzer-en-francais/41045 "2016-02-05T10:12:13Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![zeenon](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/zeenon/32/24883_2.png) [@zeenon](https://discuss.elastic.co/u/zeenon)\
**Post date:** [February 5, 2016, 10:12am UTC](https://discuss.elastic.co/t/language-analyzer-en-francais/41045/1 "2016-02-05T10:12:13Z")

</div>

bonjour,  
je suis la documentation Language Analyzers avec cette URL [https://www.elastic.co/guide/en/elasticsearch/reference/current/analysis-lang-analyzer.html](https://www.elastic.co/guide/en/elasticsearch/reference/current/analysis-lang-analyzer.html). Je prends l'exemple pour le français mais j'obtiens le message d'erreur suivant:  
{"error":{"root\_cause":[{"type":"index\_creation\_exception","reason":"failed to create index"}],"type":"illegal\_argument\_exception","reason":"keyword filter requires either `keywords` or `keywords_path` to be configured"},"status":400}  
Cela doit sûrement être gros comme une maison mais là, je sèche.  
une idée ?  
merci

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [February 5, 2016, 10:42am UTC](https://discuss.elastic.co/t/language-analyzer-en-francais/41045/2 "2016-02-05T10:42:10Z")

</div>

Tu peux poster ce que tu fais ?

---

<div class="post-metadata">

**Author:** ![zeenon](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/zeenon/32/24883_2.png) [@zeenon](https://discuss.elastic.co/u/zeenon)\
**Post date:** [February 5, 2016, 10:57am UTC](https://discuss.elastic.co/t/language-analyzer-en-francais/41045/3 "2016-02-05T10:57:52Z")

</div>

```
curl -X POST http://localhost:9200/french -d '
{
  "settings": {
    "analysis": {
      "filter": {
        "french_elision": {
          "type": "elision",
          "articles_case": true,
            "articles": [
              "l", "m", "t", "qu", "n", "s",
              "j", "d", "c", "jusqu", "quoiqu",
              "lorsqu", "puisqu"
            ]
        },
        "french_stop": {
          "type": "stop",
          "stopwords": "_french_" 
        },
        "french_keywords": {
          "type": "keyword_marker",
          "keywords": [] 
        },
        "french_stemmer": {
          "type": "stemmer",
          "language": "light_french"
        }
      },
      "analyzer": {
        "french": {
          "tokenizer": "standard",
          "filter": [
            "french_elision",
            "lowercase",
            "french_stop",
            "french_keywords",
            "french_stemmer"
          ]
        }
      }
    }
  }
}
'
```

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [February 5, 2016, 11:50am UTC](https://discuss.elastic.co/t/language-analyzer-en-francais/41045/4 "2016-02-05T11:50:57Z")

</div>

A quoi te sert:

```auto
"french_keywords": {
          "type": "keyword_marker",
          "keywords": [] 
        },

```

Si tu ne mets pas de keywords?

---

<div class="post-metadata">

**Author:** ![zeenon](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/zeenon/32/24883_2.png) [@zeenon](https://discuss.elastic.co/u/zeenon)\
**Post date:** [February 5, 2016, 2:07pm UTC](https://discuss.elastic.co/t/language-analyzer-en-francais/41045/5 "2016-02-05T14:07:14Z")

</div>

je ne fait que prendre l'exemple donné dans la documentation...  
j'ai viré le french\_keywords et tout est OK  
merci

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [February 5, 2016, 3:18pm UTC](https://discuss.elastic.co/t/language-analyzer-en-francais/41045/6 "2016-02-05T15:18:13Z")

</div>

Tu n'as pas remarqué le `2` à côté du filtre qui dit:

> This filter should be removed unless there are words which should be excluded from stemming.

?

---

<div class="post-metadata">

**Author:** ![Maikel\_Janssen](https://avatars.discourse-cdn.com/v4/letter/m/76d3ee/32.png) [@Maikel\_Janssen](https://discuss.elastic.co/u/Maikel_Janssen)\
**Post date:** [February 21, 2017, 10:59am UTC](https://discuss.elastic.co/t/language-analyzer-en-francais/41045/7 "2017-02-21T10:59:32Z")

</div>

Hey, this seems a little like the problem i am having. But i tried the solution mentioned above, but did not get it to work. Listed the issue here [Update analyzer (stopwords)](https://discuss.elastic.co/t/update-analyzer-stopwords/75748) maybe you can help me with it.  
Cheers

---

<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, 1:43pm UTC](https://discuss.elastic.co/t/language-analyzer-en-francais/41045/8 "2017-07-06T13:43:52Z")

</div>


