mirror of
https://gitlab.com/animath/si/plateforme.git
synced 2024-12-25 05:42:23 +00:00
Remove whoosh in profit for Elasticsearch
Signed-off-by: Emmy D'Anello <emmy.danello@animath.fr>
This commit is contained in:
parent
50e95ad3f2
commit
f1d2acdc25
@ -5,6 +5,7 @@ Django>=5.0,<6.0
|
|||||||
django-crispy-forms~=2.1
|
django-crispy-forms~=2.1
|
||||||
django-extensions~=3.2.3
|
django-extensions~=3.2.3
|
||||||
django-filter~=23.5
|
django-filter~=23.5
|
||||||
|
elasticsearch~=7.17.9
|
||||||
git+https://github.com/django-haystack/django-haystack.git#v3.3b1
|
git+https://github.com/django-haystack/django-haystack.git#v3.3b1
|
||||||
django-mailer~=2.3.1
|
django-mailer~=2.3.1
|
||||||
django-phonenumber-field~=7.3.0
|
django-phonenumber-field~=7.3.0
|
||||||
@ -23,4 +24,3 @@ requests~=2.31.0
|
|||||||
sympasoap~=1.1
|
sympasoap~=1.1
|
||||||
uvicorn~=0.25.0
|
uvicorn~=0.25.0
|
||||||
websockets~=12.0
|
websockets~=12.0
|
||||||
whoosh~=2.7.4
|
|
@ -203,8 +203,9 @@ DJANGO_TABLES2_TEMPLATE = 'django_tables2/bootstrap5.html'
|
|||||||
|
|
||||||
HAYSTACK_CONNECTIONS = {
|
HAYSTACK_CONNECTIONS = {
|
||||||
'default': {
|
'default': {
|
||||||
'ENGINE': 'haystack.backends.whoosh_backend.WhooshEngine',
|
'ENGINE': 'haystack.backends.elasticsearch7_backend.Elasticsearch7SearchEngine',
|
||||||
'PATH': os.path.join(os.path.dirname(__file__), 'whoosh_index'),
|
'URL': 'http://elasticsearch:9200/',
|
||||||
|
'INDEX_NAME': 'haystack',
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
1
tox.ini
1
tox.ini
@ -26,7 +26,6 @@ deps =
|
|||||||
pypdf~=3.17.4
|
pypdf~=3.17.4
|
||||||
python-magic~=0.4.27
|
python-magic~=0.4.27
|
||||||
requests~=2.31.0
|
requests~=2.31.0
|
||||||
whoosh~=2.7.4
|
|
||||||
|
|
||||||
commands =
|
commands =
|
||||||
coverage run --source=api,draw,logs,participation,registration,tfjm ./manage.py test api/ draw/ logs/ participation/ registration/ tfjm/
|
coverage run --source=api,draw,logs,participation,registration,tfjm ./manage.py test api/ draw/ logs/ participation/ registration/ tfjm/
|
||||||
|
Loading…
Reference in New Issue
Block a user