original_docstring: Check if current collection's Elasticsearch index exists.
docstring: Check if current collection's Elasticsearch index exists.
docstring_tokens: Check if current collection ' s Elasticsearch index exists .
code: def index_exists():
      """Check if current collection's Elasticsearch index exists."""
  
      es_index = collections.current().es_index
      head_resp = requests.head(f"{ES_URL}/{es_index}")
      return head_resp.status_code == 200
code_tokens: def index_exists ( ) : es_index = collections . current ( ) . es_index head_resp = requests . head ( f"{ES_URL}/{es_index}" ) return head_resp . status_code == 200
short_docstring: Check if current collection's Elasticsearch index exists.
short_docstring_tokens: Check if current collection ' s Elasticsearch index exists .
comment: """Check if current collection's Elasticsearch index exists."""