Skip to content
This repository has been archived by the owner on Nov 21, 2024. It is now read-only.

Commit

Permalink
score draft, needs tests
Browse files Browse the repository at this point in the history
  • Loading branch information
DonHaul committed Aug 23, 2024
1 parent 8a4e640 commit ec0410b
Showing 1 changed file with 0 additions and 44 deletions.
44 changes: 0 additions & 44 deletions backoffice/config/settings/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
},
},
}

0 comments on commit ec0410b

Please sign in to comment.