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:
parent
378bdfccfc
commit
c20f5675c6
1 changed files with 2 additions and 3 deletions
|
|
@ -75,9 +75,8 @@ class ESConnection(DocStoreConnection):
|
|||
settings.ES["hosts"].split(","),
|
||||
basic_auth=(settings.ES["username"], settings.ES[
|
||||
"password"]) if "username" in settings.ES and "password" in settings.ES else None,
|
||||
verify_certs=False,
|
||||
timeout=600
|
||||
)
|
||||
verify_certs= settings.ES.get("verify_certs", False),
|
||||
timeout=600 )
|
||||
if self.es:
|
||||
self.info = self.es.info()
|
||||
return True
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue