Rename elastic and update settings file
This commit is contained in:
@@ -13,9 +13,9 @@ from core.db.processing import annotate_results, parse_results
|
||||
from core.views.helpers import dedup_list
|
||||
|
||||
|
||||
class OpensearchBackend(StorageBackend):
|
||||
class ElasticsearchBackend(StorageBackend):
|
||||
def __init__(self):
|
||||
super().__init__("Opensearch")
|
||||
super().__init__("Elasticsearch")
|
||||
|
||||
def initialise(self, **kwargs):
|
||||
"""
|
||||
@@ -6,8 +6,8 @@ def get_db():
|
||||
from core.db.druid import DruidBackend
|
||||
|
||||
return DruidBackend()
|
||||
elif settings.DB_BACKEND == "OPENSEARCH":
|
||||
from core.db.opensearch import OpensearchBackend
|
||||
elif settings.DB_BACKEND == "ELASTICSEARCH":
|
||||
from core.db.elastic import ElasticSearchBackend
|
||||
|
||||
return OpensearchBackend()
|
||||
elif settings.DB_BACKEND == "MANTICORE":
|
||||
|
||||
Reference in New Issue
Block a user