original_docstring: Create Elasticsearch index for current collection.
docstring: Create Elasticsearch index for current collection.
docstring_tokens: Create Elasticsearch index for current collection .
code: def create_index():
      """Create Elasticsearch index for current collection."""
  
      es_index = collections.current().es_index
      url = f'{ES_URL}/{es_index}'
      log.info("PUT %s", url)
      put_resp = put_json(url, CONFIG)
      check_response(put_resp)
code_tokens: def create_index ( ) : es_index = collections . current ( ) . es_index url = f'{ES_URL}/{es_index}' log . info ( "PUT %s" , url ) put_resp = put_json ( url , CONFIG ) check_response ( put_resp )
short_docstring: Create Elasticsearch index for current collection.
short_docstring_tokens: Create Elasticsearch index for current collection .
comment: """Create Elasticsearch index for current collection."""