diff options
author | Étienne Loks <etienne.loks@iggdrasil.net> | 2023-11-28 15:30:34 +0100 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2023-11-28 15:34:00 +0100 |
commit | 308e0fb9afd3747d7f7822058582ea701a71aaf7 (patch) | |
tree | 41a22781ca6f7e4dfe1ce06b0aa9e2c7d24adb43 /ishtar_common/models.py | |
parent | a5d3afd375e0232f51a9525f54a455b8b2529090 (diff) | |
download | Ishtar-308e0fb9afd3747d7f7822058582ea701a71aaf7.tar.bz2 Ishtar-308e0fb9afd3747d7f7822058582ea701a71aaf7.zip |
🐛 Document table: fix performance issue on sort (refs #5667)
Diffstat (limited to 'ishtar_common/models.py')
-rw-r--r-- | ishtar_common/models.py | 2 |
1 files changed, 2 insertions, 0 deletions
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 |