From 58f8c4597318f238ffffa874c9525d52a5995c50 Mon Sep 17 00:00:00 2001 From: Michal Konecny Date: Fri, 20 Sep 2024 10:16:29 +0200 Subject: [PATCH] [mailman] Use xapian as a backend for fulltext search The whoosh engine doesn't seem to be maintained anymore and when generating the index it got stuck when the size was about 20 GB. Xapian on the other hand looks more stable and much quicker when generating the index. Unfortunately the xapian-haystack package is not available in Fedora/EPEL yet and waiting for review to be finished. Link to review bug: https://bugzilla.redhat.com/show_bug.cgi?id=2313507 Signed-off-by: Michal Konecny --- roles/mailman3/tasks/main.yml | 2 +- roles/mailman3/templates/settings.py.j2 | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/roles/mailman3/tasks/main.yml b/roles/mailman3/tasks/main.yml index 4c09f8f3fa..2e61dd8c66 100644 --- a/roles/mailman3/tasks/main.yml +++ b/roles/mailman3/tasks/main.yml @@ -20,7 +20,7 @@ - python3-mailman-web - python3-pylibmc - python3-psycopg2 - - python3-whoosh + - python3-xapian-haystack - sassc tags: - packages diff --git a/roles/mailman3/templates/settings.py.j2 b/roles/mailman3/templates/settings.py.j2 index 029f981533..5954ea4239 100644 --- a/roles/mailman3/templates/settings.py.j2 +++ b/roles/mailman3/templates/settings.py.j2 @@ -300,7 +300,7 @@ COMPRESS_OFFLINE = True # HAYSTACK_CONNECTIONS = { 'default': { - 'ENGINE': 'haystack.backends.whoosh_backend.WhooshEngine', + 'ENGINE': 'xapian_backend.XapianEngine', 'PATH': "{{ mailman_webui_basedir }}/fulltext_index", }, }