title: Why Elasticsearch "not_analyzed" field is split into terms?
body: <p>I have the following field in my mapping definition:</p>
  
  <pre><code>...
  "my_field": {
    "type": "string",
    "index":"not_analyzed"
  }
  ...
  </code></pre>
  
  <p>When I index a document with value of <code>my_field = 'test-some-another'</code> that value is split into 3 terms: <code>test</code>, <code>some</code>, <code>another</code>.</p>
  
  <p>What am I doing wrong?</p>
  
  <p>I created the following index:</p>
  
  <pre><code>curl -XPUT localhost:9200/my_index -d '{
     "index": {
      "settings": {
        "number_of_shards": 5,
        "number_of_replicas": 2
      },
      "mappings": {
        "my_type": {
          "_all": {
            "enabled": false
          },
          "_source": {
            "compressed": true
          },
          "properties": {
            "my_field": {
              "type": "string",
              "index": "not_analyzed"
            }
          }
        }
      }
    }
  }'
  </code></pre>
  
  <p>Then I index the following document:</p>
  
  <pre><code>curl -XPOST localhost:9200/my_index/my_type -d '{
    "my_field": "test-some-another"
  }'
  </code></pre>
  
  <p>Then I use the plugin <a href="https://github.com/jprante/elasticsearch-index-termlist">https://github.com/jprante/elasticsearch-index-termlist</a> with the following API:
  <code>
      curl -XGET localhost:9200/my_index/_termlist
  </code>
  That gives me the following response:
  <code></p>
  
  <pre><code>{"ok":true,"_shards":{"total":5,"successful":5,"failed":0},"terms": ["test","some","another"]}
  </code></pre>
  
  <p></code></p>