title: Why index keep on creating while hitting the api in elastic search
body: <p>code is below</p>
  <pre><code>r = [{'eid': '1', 'data': 'Health'},
   {'eid': '2', 'data': 'countries'},
   {'eid': '3', 'data': 'countries currency'},
   {'eid': '4', 'data': 'countries language'}]
  from elasticsearch import Elasticsearch
  es = Elasticsearch()
  es.cluster.health()
  es.indices.create(index='my-index_1', ignore=400)
  
  for e in enumerate(r):
      es.index(index=&quot;my-index_1&quot;, body=e[1])
  search1 = es.search(index=&quot;my-index_1&quot;, body={'query': {'term' : {'data.keyword': 'Health'}}})
  search1
  </code></pre>
  <p>First time out is below</p>
  <pre><code>{'took': 0,
   'timed_out': False,
   '_shards': {'total': 1, 'successful': 1, 'skipped': 0, 'failed': 0},
   'hits': {'total': {'value': 0, 'relation': 'eq'},
    'max_score': None,
    'hits': []}}
  </code></pre>
  <p>Second time</p>
  <pre><code>{'took': 0,
   'timed_out': False,
   '_shards': {'total': 1, 'successful': 1, 'skipped': 0, 'failed': 0},
   'hits': {'total': {'value': 1, 'relation': 'eq'},
    'max_score': 1.2039728,
    'hits': [{'_index': 'my-index_1',
      '_type': '_doc',
      '_id': 'Rov4UHMBpo0uANDoY2_5',
      '_score': 1.2039728,
      '_source': {'eid': '1', 'data': 'Health'}}]}}
  </code></pre>
  <p>Third time</p>
  <pre><code>{'took': 0,
   'timed_out': False,
   '_shards': {'total': 1, 'successful': 1, 'skipped': 0, 'failed': 0},
   'hits': {'total': {'value': 2, 'relation': 'eq'},
    'max_score': 1.2809337,
    'hits': [{'_index': 'my-index_1',
      '_type': '_doc',
      '_id': 'Rov4UHMBpo0uANDoY2_5',
      '_score': 1.2809337,
      '_source': {'eid': '1', 'data': 'Health'}},
     {'_index': 'my-index_1',
      '_type': '_doc',
      '_id': 'aov4UHMBpo0uANDonm_E',
      '_score': 1.2809337,
      '_source': {'eid': '1', 'data': 'Health'}}]}}
  </code></pre>
  <p>​Below tag are keep on repating while hitting again and again</p>
  <pre><code>{'_index': 'my-index_1',
      '_type': '_doc',
      '_id': 'aov4UHMBpo0uANDonm_E',
      '_score': 1.2809337,
      '_source': {'eid': '1', 'data': 'Health'}}
  </code></pre>
  <p>Is it because of enumerate?. My input is list of dictionary then which having multiple keys, otherwise how to parse this?</p>
  <p>My expected out is it should show only one time for every hit
  ?</p>