@@ -36,10 +36,10 @@ def test_relevant_indexes(resourse_types, aggregations, result):
3636 ("sort_param" , "departments" , "result" ),
3737 [
3838 ("id" , None , "id" ),
39- ("-id" , ["Biology " ], "-id" ),
39+ ("-id" , ["7 " ], "-id" ),
4040 (
4141 "start_date" ,
42- ["Chemistry " ],
42+ ["5 " ],
4343 {"runs.start_date" : {"order" : "asc" , "nested" : {"path" : "runs" }}},
4444 ),
4545 (
@@ -62,7 +62,7 @@ def test_relevant_indexes(resourse_types, aggregations, result):
6262 ),
6363 (
6464 "mitcoursenumber" ,
65- ["Biology " , "Chemistry " ],
65+ ["7 " , "5 " ],
6666 {
6767 "course.course_numbers.sort_coursenum" : {
6868 "order" : "asc" ,
@@ -73,15 +73,15 @@ def test_relevant_indexes(resourse_types, aggregations, result):
7373 "should" : [
7474 {
7575 "term" : {
76- "course.course_numbers.department.name " : (
77- "Biology "
76+ "course.course_numbers.department.department_id " : (
77+ "7 "
7878 )
7979 }
8080 },
8181 {
8282 "term" : {
83- "course.course_numbers.department.name " : (
84- "Chemistry "
83+ "course.course_numbers.department.department_id " : (
84+ "5 "
8585 )
8686 }
8787 },
@@ -141,7 +141,9 @@ def test_generate_learning_resources_text_clause():
141141 "query" : {
142142 "multi_match" : {
143143 "query" : "math" ,
144- "fields" : ["departments.name" ],
144+ "fields" : [
145+ "departments.department_id"
146+ ],
145147 }
146148 },
147149 }
@@ -256,7 +258,7 @@ def test_generate_learning_resources_text_clause():
256258 "query" : {
257259 "multi_match" : {
258260 "query" : "math" ,
259- "fields" : ["departments.name " ],
261+ "fields" : ["departments.department_id " ],
260262 }
261263 },
262264 }
@@ -371,7 +373,9 @@ def test_generate_learning_resources_text_clause():
371373 "query" : {
372374 "query_string" : {
373375 "query" : '"math"' ,
374- "fields" : ["departments.name" ],
376+ "fields" : [
377+ "departments.department_id"
378+ ],
375379 }
376380 },
377381 }
@@ -489,7 +493,7 @@ def test_generate_learning_resources_text_clause():
489493 "query" : {
490494 "query_string" : {
491495 "query" : '"math"' ,
492- "fields" : ["departments.name " ],
496+ "fields" : ["departments.department_id " ],
493497 }
494498 },
495499 }
@@ -593,7 +597,9 @@ def test_generate_content_file_text_clause():
593597 "query" : {
594598 "multi_match" : {
595599 "query" : "math" ,
596- "fields" : ["departments.name" ],
600+ "fields" : [
601+ "departments.department_id"
602+ ],
597603 }
598604 },
599605 }
@@ -622,7 +628,7 @@ def test_generate_content_file_text_clause():
622628 "query" : {
623629 "multi_match" : {
624630 "query" : "math" ,
625- "fields" : ["departments.name " ],
631+ "fields" : ["departments.department_id " ],
626632 }
627633 },
628634 }
@@ -655,7 +661,9 @@ def test_generate_content_file_text_clause():
655661 "query" : {
656662 "query_string" : {
657663 "query" : '"math"' ,
658- "fields" : ["departments.name" ],
664+ "fields" : [
665+ "departments.department_id"
666+ ],
659667 }
660668 },
661669 }
@@ -684,7 +692,7 @@ def test_generate_content_file_text_clause():
684692 "query" : {
685693 "query_string" : {
686694 "query" : '"math"' ,
687- "fields" : ["departments.name " ],
695+ "fields" : ["departments.department_id " ],
688696 }
689697 },
690698 }
@@ -905,7 +913,7 @@ def test_execute_learn_search(opensearch):
905913 "multi_match" : {
906914 "query" : "math" ,
907915 "fields" : [
908- "departments.name "
916+ "departments.department_id "
909917 ],
910918 }
911919 },
@@ -1027,7 +1035,7 @@ def test_execute_learn_search(opensearch):
10271035 "query" : {
10281036 "multi_match" : {
10291037 "query" : "math" ,
1030- "fields" : ["departments.name " ],
1038+ "fields" : ["departments.department_id " ],
10311039 }
10321040 },
10331041 }
0 commit comments