mirror of
https://github.com/infiniflow/ragflow.git
synced 2025-12-08 20:42:30 +08:00
Fix: elasticsearch connection hardcoded (#10975)
### What problem does this PR solve? https://github.com/infiniflow/ragflow/issues/10930 ### Type of change - [x] Bug Fix (non-breaking change which fixes an issue)
This commit is contained in:
@ -75,9 +75,8 @@ class ESConnection(DocStoreConnection):
|
|||||||
settings.ES["hosts"].split(","),
|
settings.ES["hosts"].split(","),
|
||||||
basic_auth=(settings.ES["username"], settings.ES[
|
basic_auth=(settings.ES["username"], settings.ES[
|
||||||
"password"]) if "username" in settings.ES and "password" in settings.ES else None,
|
"password"]) if "username" in settings.ES and "password" in settings.ES else None,
|
||||||
verify_certs=False,
|
verify_certs= settings.ES.get("verify_certs", False),
|
||||||
timeout=600
|
timeout=600 )
|
||||||
)
|
|
||||||
if self.es:
|
if self.es:
|
||||||
self.info = self.es.info()
|
self.info = self.es.info()
|
||||||
return True
|
return True
|
||||||
|
|||||||
Reference in New Issue
Block a user