title: analyzer not found when creating index mapping
body: <p>when an index was created new analyzer was added <code>analyzer_keyword</code> - see below create index </p>
  
  <pre><code>curl -XPUT 'http://mycluster/dsi2' -d '{
    "settings": {
      "index": {
        "number_of_shards": 1,
        "number_of_replicas": 1,
        "analysis": {
          "analyzer": {
            "analyzer_keyword": {
              "tokenizer": "keyword",
               "filter": "lowercase"
            }
          }
        }
      }
    }
  }
  </code></pre>
  
  <p>Running <code>_settings</code> endpoint confirms following</p>
  
  <pre><code>http GET http://mycluster/dsi2/_settings
  HTTP/1.1 200 OK
  Access-Control-Allow-Origin: *
  Connection: keep-alive
  Content-Length: 267
  Content-Type: application/json; charset=UTF-8
  
  {
      "dsi2": {
          "settings": {
              "index": {
                  "analysis": {
                      "analyzer": {
                          "analyzer_keyword": {
                              "filter": "lowercase", 
                              "tokenizer": "keyword"
                          }
                      }
                  }, 
                  "creation_date": "1484088347598", 
                  "number_of_replicas": "1", 
                  "number_of_shards": "1", 
                  "uuid": "Lu98fn6gRiOe3Q1y8fU6tQ", 
                  "version": {
                      "created": "2030299"
                  }
              }
          }
      }
  }
  </code></pre>
  
  <p>but now when creating <code>mapping</code> - (following is partial mapping json with relevant fields )</p>
  
  <pre><code>curl -XPUT 'http://mycluster/_mapping/dsi2' -d '{
    "_all": {
      "enabled": true
    },
    "properties": {
      "mainId" : {
        "type" : "integer"
        },
  
      "instance": {
        "properties": {
          "id": {
            "type": "integer",
            "fields": {
              "raw": {
                "type": "integer",
                "index": "not_analyzed"
              }
  </code></pre>
  
  <p>it throws</p>
  
  <pre><code>[{"error":{"root_cause": [{"type":"mapper_parsing_exception","reason":"analyzer [analyzer_keyword] not found for field [raw]"}],"type":"mapper_parsing_exception","reason":"analyzer [analyzer_keyword] not found for field [raw]"},"status":400}
  </code></pre>
  
  <p>any idea why it's not able to find <code>analyzer_keyword</code> mapping that was created part of index? this is against Amazon EC2 ElasticService instance with Elastic version 2.3</p>
  
  <p><strong>EDIT -</strong> 
  Thanks Val for the response.</p>
  
  <p>@Val - thanks for the response. after recreating index as you pointed out - I am still getting same error while creating mapping. 
  when I run GET <code>http://mycluster/dsi2/_settings</code> it shows me following </p>
  
  <pre><code>{
      "dsi2": {
          "settings": {
              "index": {
                  "analysis": {
                      "analyzer": {
                          "analyzer_keyword": {
                              "filter": "lowercase", 
                              "tokenizer": "keyword"
                          }
                      }
                  }, 
                  "creation_date": "1484146006348", 
                  "number_of_replicas": "1", 
                  "number_of_shards": "1", 
                  "uuid": "HzjQjZXmS8SPF6yUFZanEQ", 
                  "version": {
                      "created": "2030299"
                  }
              }
          }
      }
  }
  </code></pre>