docstr: Create index (delete if exists)
docstr_tok: ["Create","index","(","delete","if","exists",")"]
code: def create_index(self, index_name):
      """
      Create index (delete if exists)
      """
      if self.es.indices.exists(index=index_name):
          self.es.indices.delete(index=index_name)
          request_body = {
              "settings": {
                  "number_of_shards": 1,
                  "number_of_replicas": 0,
              }
          }
          self.es.indices.create(
              index=index_name, body=request_body, ignore=400
          )
  
imports: from elasticsearch import Elasticsearch, helpers
label_desc: Use image node_id 3 for calling the ElasticConnector obj's underlying member method code with example usage: obj.create_index(index_name) without return types