title: elasticsearch.exceptions.RequestError: RequestError(400, 'mapper_parsing_exception', 'No handler for type [string] declared on field [texts]')
body: <p>I use elasticsearch python api to create mappings, but it went some wrong:</p>
  
  <pre><code>es = Elasticsearch("localhost:9200")
  request_body = {
      "settings": {
          "number_of_shards": 5,
          "number_of_replicas": 1
      },
      'mappings': {
          'examplecase': {
              'properties': {
                  'tbl_id': {'index': 'not_analyzed', 'type': 'string'},
                  'texts': {'index': 'analyzed', 'type': 'string'},
              }
          }
      }
  }
  es.indices.create(index='example_index', body=request_body)
  </code></pre>
  
  <p>it shows <code>elasticsearch.exceptions.RequestError: RequestError(400, 'mapper_parsing_exception', 'No handler for type [string] declared on field [texts]')</code>, and I find some solution that they say: use <code>text</code> instead of <code>string</code> in the field type, but it also went wrong: <code>elasticsearch.exceptions.RequestError: RequestError(400, 'mapper_parsing_exception', 'Failed to parse mapping [examplecase]: Could not convert [texts.index] to boolean'). The elasticsearch version is</code>elasticsearch-6.5.4<code>. How can I deal with it?
  </code></p>