Add analyzer to a field
<p>I have a type named <code>placess</code> as follows:  </p>

<pre><code> "name" : {
        "type" : "string"
      },
</code></pre>

<p>I have created an analyzer as follows:  </p>

<pre><code>curl -XPUT 'localhost:9200/ashojash/_settings' -d '{
"settings": {
    "analysis": {
        "filter": {
            "autocomplete_filter": { 
                "type":     "edge_ngram",
                "min_gram": 1,
                "max_gram": 20
            }
        },
        "analyzer": {
            "autocomplete": {
                "type":      "custom",
                "tokenizer": "standard",
                "filter": [
                    "lowercase",
                    "autocomplete_filter" 
                ]
            }
        }
    }
}
</code></pre>

<p>}
'
My question is that how can I add this analyzer to an existing field named <code>name</code>?  </p>

<p>I tried </p>

<pre><code>curl -XPUT 'http://localhost:9200/ashojash/_mapping/venues' -d '
{
"venues" : {
    "properties" : {
        "name" : {
            type:"string",
            "analyzer": "persian"
            }
    }
 }
}'
</code></pre>

<p>But this gives me conflict field [name] already exists.<br>
how can I add this analyzer to an existing field named <code>name</code>?  </p>