Toggle Menu
Prev Up Next

# `langchain_elasticsearch.client`.create_elasticsearch_client

langchain_elasticsearch.client.create_elasticsearch_client(url: Optional[str] = None, cloud_id: Optional[str] = None, api_key: Optional[str] = None, username: Optional[str] = None, password: Optional[str] = None, params: Optional[Dict[str, Any]] = None) → Elasticsearch
  Parameters

    - url (Optional[str]) –

    - cloud_id (Optional[str]) –

    - api_key (Optional[str]) –

    - username (Optional[str]) –

    - password (Optional[str]) –

    - params (Optional[Dict[str, Any]]) –

  Return type

    Elasticsearch