We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6d9cccc commit 15652f0Copy full SHA for 15652f0
learning_resources_search/api.py
@@ -40,7 +40,12 @@
40
41
LEARN_SUGGEST_FIELDS = ["title.trigram", "description.trigram"]
42
COURSENUM_SORT_FIELD = "course.course_numbers.sort_coursenum"
43
-DEFAULT_SORT = ["featured_rank", "is_learning_material", "-created_on"]
+DEFAULT_SORT = [
44
+ "featured_rank",
45
+ "is_learning_material",
46
+ "is_incomplete_or_stale",
47
+ "-created_on",
48
+]
49
50
51
def gen_content_file_id(content_file_id):
learning_resources_search/api_test.py
@@ -2700,6 +2700,7 @@ def test_document_percolation(opensearch, mocker):
2700
[
2701
"featured_rank",
2702
"is_learning_material",
2703
2704
{"created_on": {"order": "desc"}},
2705
],
2706
),
0 commit comments