1
0
mirror of https://gitlab.com/animath/si/plateforme.git synced 2024-12-24 18:22:24 +00:00

Remove whoosh in profit for Elasticsearch

Signed-off-by: Emmy D'Anello <emmy.danello@animath.fr>
This commit is contained in:
Emmy D'Anello 2024-01-13 18:28:45 +01:00
parent 50e95ad3f2
commit f1d2acdc25
Signed by: ynerant
GPG Key ID: 3A75C55819C8CF85
3 changed files with 5 additions and 5 deletions

View File

@ -5,6 +5,7 @@ Django>=5.0,<6.0
django-crispy-forms~=2.1
django-extensions~=3.2.3
django-filter~=23.5
elasticsearch~=7.17.9
git+https://github.com/django-haystack/django-haystack.git#v3.3b1
django-mailer~=2.3.1
django-phonenumber-field~=7.3.0
@ -23,4 +24,3 @@ requests~=2.31.0
sympasoap~=1.1
uvicorn~=0.25.0
websockets~=12.0
whoosh~=2.7.4

View File

@ -203,8 +203,9 @@ DJANGO_TABLES2_TEMPLATE = 'django_tables2/bootstrap5.html'
HAYSTACK_CONNECTIONS = {
'default': {
'ENGINE': 'haystack.backends.whoosh_backend.WhooshEngine',
'PATH': os.path.join(os.path.dirname(__file__), 'whoosh_index'),
'ENGINE': 'haystack.backends.elasticsearch7_backend.Elasticsearch7SearchEngine',
'URL': 'http://elasticsearch:9200/',
'INDEX_NAME': 'haystack',
}
}

View File

@ -26,7 +26,6 @@ deps =
pypdf~=3.17.4
python-magic~=0.4.27
requests~=2.31.0
whoosh~=2.7.4
commands =
coverage run --source=api,draw,logs,participation,registration,tfjm ./manage.py test api/ draw/ logs/ participation/ registration/ tfjm/