Rename elastic and update settings file

This commit is contained in:
2022-11-21 19:20:02 +00:00
parent b6ea714d59
commit 7702e04286
3 changed files with 28 additions and 39 deletions

View File

@@ -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):
"""

View File

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