Skip to content

Commit

Permalink
feat: add published fields to the keyword searchable attributes list
Browse files Browse the repository at this point in the history
  • Loading branch information
bradenmacdonald committed Oct 21, 2024
1 parent d6b34ff commit e26c286
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions openedx/core/djangoapps/content/search/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -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([
Expand Down

0 comments on commit e26c286

Please sign in to comment.