Define a stop wordlist into an analyser with elasticsearch
<p>I'm trying to add a list of stop word to my mapping but I get an error. This is the mapping:</p>

<pre><code>PUT test-recipe
{
  "mappings": {
    "recipe" : {
      "properties" : {
        "ingredients" : {
          "type" :    "string",
          "analyzer": "english",
          "stopwords": ["my", "stop", "words"]
        }
      }
    }
  }
}
</code></pre>

<p>This mapping works fine without the stop words parameter. But with the stop words field I get the following error: </p>

<pre><code>{
   "error": {
      "root_cause": [
         {
            "type": "mapper_parsing_exception",
            "reason": "Mapping definition for [ingredients] has unsupported parameters:  [stopwords : [Best®, Halves, organic, island, free, gluten, high-gluten, segments, baking, cooking, new, active, dry, leaves, slices, sliced, warm, root, hot, jack, extract, slivered, sliver, non-fat, fat, chopped, skinless, seed, nonfat, melted, cracked, in, split, vegetable, smoked, medium, nectar, all-purpose, fraîche, fresh]]"
         }
      ],
      "type": "mapper_parsing_exception",
      "reason": "Failed to parse mapping [recipe]: Mapping definition for [ingredients] has unsupported parameters:  [stopwords : [Best®, Halves, organic, island, free, gluten, high-gluten, segments, baking, cooking, new, active, dry, leaves, slices, sliced, warm, root, hot, jack, extract, slivered, sliver, non-fat, fat, chopped, skinless, seed, nonfat, melted, cracked, in, split, vegetable, smoked, medium, nectar, all-purpose, fraîche, fresh]]",
      "caused_by": {
         "type": "mapper_parsing_exception",
         "reason": "Mapping definition for [ingredients] has unsupported parameters:  [stopwords : [Best®, Halves, organic, island, free, gluten, high-gluten, segments, baking, cooking, new, active, dry, leaves, slices, sliced, warm, root, hot, jack, extract, slivered, sliver, non-fat, fat, chopped, skinless, seed, nonfat, melted, cracked, in, split, vegetable, smoked, medium, nectar, all-purpose, fraîche, fresh]]"
      }
   },
   "status": 400
}
</code></pre>

<p>If you could tell me why I got this problem it will make my day. Moreover is that stop words list will be taking in account when doing my "more like this query"?</p>