Skip to content

Commit

Permalink
Merge pull request #171 from eduNEXT/mgs/fix-dashboard-search
Browse files Browse the repository at this point in the history
fix: include catalog_visibility filter in courseware_content
  • Loading branch information
Ali-Salman29 authored Jan 21, 2025
2 parents 28fa16a + 940622a commit 294b1f5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion search/meilisearch.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,13 +97,14 @@
"language", # aggregate by language, mode, org
"modes",
"org",
"catalog_visibility", # exclude visibility="none"
"catalog_visibility", # used if not settings.SEARCH_SKIP_SHOW_IN_CATALOG_FILTERING
"enrollment_end", # include only enrollable courses
],
getattr(settings, "COURSEWARE_CONTENT_INDEX_NAME", "courseware_content"): [
PRIMARY_KEY_FIELD_NAME, # exclude some specific documents based on ID
"course", # search courseware content by course
"org", # used during indexing
"catalog_visibility", # used if not settings.SEARCH_SKIP_SHOW_IN_CATALOG_FILTERING
"start_date", # limit search to started courses
],
}
Expand Down

0 comments on commit 294b1f5

Please sign in to comment.