title: error when trying to update the settings
body: <p>i try to execute this commands via a bash script but i get these errors: </p>
  
  <pre><code>#!/bin/bash 
  
  curl -XPOST 'localhost:9200/my_index/_close' 
  
  curl -XPUT 'localhost:9200/my_index/_settings' -d '{ 
   "analysis": { 
      "analyzer": { 
        "ar_analyzer": { 
          "tokenizer": "standard", 
          "filter" : ["standard", "lowercase", "synonym", "ar_stemmer"] 
        }, 
        "fr_analyzer": { 
          "tokenizer": "standard", 
          "filter" : ["standard", "lowercase", "synonym", "fr_stemmer"] 
        } 
      }, 
      "filter" : { 
        "ar_stemmer" : { 
            "type" : "stemmer", 
            "name" : "arabic" 
        }, 
        "fr_stemmer" : { 
            "type" : "stemmer", 
            "name" : "french" 
        }, 
        "synonym" : { 
            "type" : "synonym", 
            "synonyms_path" : "synonyms.txt" 
        } 
      } 
    } 
  }' 
  
  curl -XPOST 'localhost:9200/my_index/_open' 
  </code></pre>
  
  <p><strong>Error stacktrace :</strong> </p>
  
  <blockquote>
    <p>{"error":"IndexPrimaryShardNotAllocatedException[[my_index] primary
    not allocated post
    api]","status":409}{"error":"ElasticSearchIllegalArgumentException[Can't
    update non dynamic settings[[index.analysis.filter.ar_stemmer.name ,
    index.analysis.analyzer.fr_analyzer.filter.3,
    index.analysis.filter.synonym.type,
    index.analysis.analyzer.ar_analyzer.filter.0,
    index.analysis.analyzer.fr_analyzer.filter.0,
    index.analysis.analyzer.ar_analyzer.filter.1,
    index.analysis.analyzer.fr_analyzer.filter.2,
    index.analysis.analyzer.fr_analyzer.filter.1,
    index.analysis.analyzer.ar_analyzer.filter.2,
    index.analysis.analyzer.ar_analyzer.filter.3,
    index.analysis.filter.ar_stemmer.type,
    index.analysis.filter.fr_stemmer.name ,
    index.analysis.analyzer.ar_analyzer.tokenizer,
    index.analysis.filter.fr_stemmer.type,
    index.analysis.analyzer.fr_analyzer.tokenizer,
    index.analysis.filter.synonym.synonyms_path]] for open
    indices[[my_index]]]","status":400}</p>
  </blockquote>