Skip to content

Commit

Permalink
fix: include catalog_visibility filter in courseware_content
Browse files Browse the repository at this point in the history
The catalog_visibility filter is passed to the courseware_content index
when performing a search using the legacy student dashboard view. If not
included an error like follows is raised:

    MeilisearchApiError. Error code: invalid_search_filter. Error message:
    Attribute `catalog_visibility` is not filterable
  • Loading branch information
MoisesGSalas committed Nov 26, 2024
1 parent 28fa16a commit 15f34fb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions search/meilisearch.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@
PRIMARY_KEY_FIELD_NAME, # exclude some specific documents based on ID
"course", # search courseware content by course
"org", # used during indexing
"catalog_visibility", # exclude visibility="none"
"start_date", # limit search to started courses
],
}
Expand Down

0 comments on commit 15f34fb

Please sign in to comment.