mirror of
https://github.com/deepset-ai/haystack.git
synced 2025-07-23 08:52:16 +00:00
8 lines
293 B
Python
8 lines
293 B
Python
from elasticsearch import Elasticsearch
|
|
|
|
from rest_api.config import DB_HOST, DB_USER, DB_PW, DB_PORT, ES_CONN_SCHEME
|
|
|
|
elasticsearch_client = Elasticsearch(
|
|
hosts=[{"host": DB_HOST, "port": DB_PORT}], http_auth=(DB_USER, DB_PW), scheme=ES_CONN_SCHEME, ca_certs=False, verify_certs=False
|
|
)
|