From 308e0fb9afd3747d7f7822058582ea701a71aaf7 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Tue, 28 Nov 2023 15:30:34 +0100 Subject: 🐛 Document table: fix performance issue on sort (refs #5667) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ishtar_common/models.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'ishtar_common') diff --git a/ishtar_common/models.py b/ishtar_common/models.py index a1fd5e714..27388658c 100644 --- a/ishtar_common/models.py +++ b/ishtar_common/models.py @@ -3927,6 +3927,7 @@ class Document( "authors__cached_label", "associated_url", ] + NEW_QUERY_ENGINE = True COL_LINK = ["associated_url"] BASE_SEARCH_VECTORS = [ SearchVectorConfig("title"), @@ -3980,6 +3981,7 @@ class Document( "authors__person__pk": "authors__person__pk", "container_id": "container_id", "publisher__pk": "publisher__pk", + "source_type__label": "source_type__label", } # alternative names of fields for searches -- cgit v1.2.3