class_docstr: Interact with Elasticsearch through the elasticsearch-dbapi.
  
  This hook uses the Elasticsearch conn_id.
  
  :param elasticsearch_conn_id: The :ref:`ElasticSearch connection id <howto/connection:elasticsearch>`
      used for Elasticsearch credentials.
class_docstr_tok: ["Interact","with","Elasticsearch","through","the","elasticsearch-dbapi",".","This","hook","uses","the","Elasticsearch","conn_id",".",":","param","elasticsearch_conn_id",":","The",":","ref",":","`","ElasticSearch","connection","id","<","howto\/connection",":","elasticsearch",">","`","used","for","Elasticsearch","credentials","."]
code: def __init__(
      self,
      schema: str = "http",
      connection: AirflowConnection | None = None,
      *args,
      **kwargs,
  ):
      super().__init__(*args, **kwargs)
      self.schema = schema
      self.connection = connection
  
imports: from __future__ import annotations
  import warnings
  from functools import cached_property
  from typing import TYPE_CHECKING, Any
  from urllib import parse
  from elasticsearch import Elasticsearch
  from airflow.exceptions import AirflowProviderDeprecationWarning
  from airflow.hooks.base import BaseHook
  from airflow.providers.common.sql.hooks.sql import DbApiHook
label_desc: Use image node_id 1 to create a new ElasticsearchSQLHook object from inherited base classes: DbApiHook with example: obj = ElasticsearchSQLHook(schema, connection)