From 15f34fbcb24afd96821a3a4a66889f9a66ce03c3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mois=C3=A9s=20Gonz=C3=A1lez?= Date: Tue, 26 Nov 2024 16:36:57 -0400 Subject: [PATCH] fix: include catalog_visibility filter in courseware_content 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 --- search/meilisearch.py | 1 + 1 file changed, 1 insertion(+) diff --git a/search/meilisearch.py b/search/meilisearch.py index 9e09e426..1b74c030 100644 --- a/search/meilisearch.py +++ b/search/meilisearch.py @@ -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 ], }