From c20f5675c663de9bdf912e1198627aac0bb0f5fb Mon Sep 17 00:00:00 2001 From: Stephen Hu <812791840@qq.com> Date: Tue, 4 Nov 2025 10:59:35 +0800 Subject: [PATCH] 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) --- rag/utils/es_conn.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/rag/utils/es_conn.py b/rag/utils/es_conn.py index 6cb569406..ec117f4e4 100644 --- a/rag/utils/es_conn.py +++ b/rag/utils/es_conn.py @@ -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