Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 12 additions & 12 deletions learning_resources_search/api_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -229,8 +229,8 @@ def test_generate_learning_resources_text_clause():
"query": "math",
"fields": [
"runs.instructors.first_name",
"runs.instructors.last_name",
"runs.instructors.full_name",
"runs.instructors.last_name^5",
"runs.instructors.full_name^5",
],
}
},
Expand Down Expand Up @@ -338,8 +338,8 @@ def test_generate_learning_resources_text_clause():
"query": "math",
"fields": [
"runs.instructors.first_name",
"runs.instructors.last_name",
"runs.instructors.full_name",
"runs.instructors.last_name^5",
"runs.instructors.full_name^5",
],
}
},
Expand Down Expand Up @@ -463,8 +463,8 @@ def test_generate_learning_resources_text_clause():
"query": '"math"',
"fields": [
"runs.instructors.first_name",
"runs.instructors.last_name",
"runs.instructors.full_name",
"runs.instructors.last_name^5",
"runs.instructors.full_name^5",
],
}
},
Expand Down Expand Up @@ -575,8 +575,8 @@ def test_generate_learning_resources_text_clause():
"query": '"math"',
"fields": [
"runs.instructors.first_name",
"runs.instructors.last_name",
"runs.instructors.full_name",
"runs.instructors.last_name^5",
"runs.instructors.full_name^5",
],
}
},
Expand Down Expand Up @@ -1144,8 +1144,8 @@ def test_execute_learn_search_for_learning_resource_query(opensearch):
"query": "math",
"fields": [
"runs.instructors.first_name",
"runs.instructors.last_name",
"runs.instructors.full_name",
"runs.instructors.last_name^5",
"runs.instructors.full_name^5",
],
}
},
Expand Down Expand Up @@ -1264,8 +1264,8 @@ def test_execute_learn_search_for_learning_resource_query(opensearch):
"query": "math",
"fields": [
"runs.instructors.first_name",
"runs.instructors.last_name",
"runs.instructors.full_name",
"runs.instructors.last_name^5",
"runs.instructors.full_name^5",
],
}
},
Expand Down
4 changes: 2 additions & 2 deletions learning_resources_search/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -338,8 +338,8 @@ class FilterConfig:

RUN_INSTRUCTORS_QUERY_FIELDS = [
"runs.instructors.first_name",
"runs.instructors.last_name",
"runs.instructors.full_name",
"runs.instructors.last_name^5",
"runs.instructors.full_name^5",
]

RESOURCEFILE_QUERY_FIELDS = [
Expand Down