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:
Stephen Hu
2025-11-04 10:59:35 +08:00
committed by GitHub
parent 378bdfccfc
commit c20f5675c6

View File

@ -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