mirror of
https://github.com/infiniflow/ragflow.git
synced 2025-12-08 20:42:30 +08:00
refactor code (#583)
### What problem does this PR solve? ### Type of change - [x] Refactoring
This commit is contained in:
@ -15,7 +15,7 @@ es_logger.info("Elasticsearch version: "+str(elasticsearch.__version__))
|
||||
|
||||
|
||||
@singleton
|
||||
class HuEs:
|
||||
class ESConnection:
|
||||
def __init__(self):
|
||||
self.info = {}
|
||||
self.conn()
|
||||
@ -454,4 +454,4 @@ class HuEs:
|
||||
scroll_size = len(page['hits']['hits'])
|
||||
|
||||
|
||||
ELASTICSEARCH = HuEs()
|
||||
ELASTICSEARCH = ESConnection()
|
||||
|
||||
Reference in New Issue
Block a user