From ec0410ba5da22a4c7210d34857212dc39f066f18 Mon Sep 17 00:00:00 2001 From: DonHaul Date: Fri, 23 Aug 2024 17:03:01 +0200 Subject: [PATCH] score draft, needs tests --- backoffice/config/settings/base.py | 44 ------------------------------ 1 file changed, 44 deletions(-) diff --git a/backoffice/config/settings/base.py b/backoffice/config/settings/base.py index 0cd1429f..e8fa6288 100644 --- a/backoffice/config/settings/base.py +++ b/backoffice/config/settings/base.py @@ -397,47 +397,3 @@ # Workaround because it wont add the connection settings automatically connections.configure(default=OPENSEARCH_DSL["default"]) - - -WORKFLOWS_UI_REST_SORT_OPTIONS = { - "holdingpen": { - "bestmatch": { - "title": "Best match", - "fields": ["-_score"], - "default_order": "asc", - "order": 1, - }, - "mostrecent": { - "title": "Most recent", - "fields": ["-metadata.acquisition_source.datetime"], - "default_order": "asc", - "order": 2, - }, - "core": { - "title": "Relevance Prediction (Desc)", - "fields": [ - { - "_extra_data.relevance_prediction.relevance_score": { - "missing": "_last", - "order": "desc", - "unmapped_type": "float", - }, - }, - ], - "order": 3, - }, - "rejected": { - "title": "Relevance Prediction (Asc)", - "fields": [ - { - "_extra_data.relevance_prediction.relevance_score": { - "missing": "_last", - "order": "asc", - "unmapped_type": "float", - }, - }, - ], - "order": 4, - }, - }, -}