From e26c28648ebaee69dbd0614a7bb8a7106acb20de Mon Sep 17 00:00:00 2001 From: Braden MacDonald Date: Mon, 21 Oct 2024 11:54:00 -0700 Subject: [PATCH] feat: add published fields to the keyword searchable attributes list --- openedx/core/djangoapps/content/search/api.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/openedx/core/djangoapps/content/search/api.py b/openedx/core/djangoapps/content/search/api.py index 17338f20ab83..b1d224b411e4 100644 --- a/openedx/core/djangoapps/content/search/api.py +++ b/openedx/core/djangoapps/content/search/api.py @@ -356,6 +356,8 @@ def rebuild_index(status_cb: Callable[[str], None] | None = None) -> None: Fields.tags + "." + Fields.tags_level3, Fields.collections + "." + Fields.collections_display_name, Fields.collections + "." + Fields.collections_key, + Fields.published + "." + Fields.display_name, + Fields.published + "." + Fields.published_description, ]) # Mark which attributes can be used for sorting search results: client.index(temp_index_name).update_sortable_attributes([