Skip to content

Commit

Permalink
feat: add block_id field to filterable attributes of meilisearch
Browse files Browse the repository at this point in the history
  • Loading branch information
navinkarkera committed Sep 20, 2024
1 parent cf3673e commit 610aaf3
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 @@ -315,6 +315,8 @@ def rebuild_index(status_cb: Callable[[str], None] | None = None) -> None:
client.index(temp_index_name).update_distinct_attribute(Fields.usage_key)
# Mark which attributes can be used for filtering/faceted search:
client.index(temp_index_name).update_filterable_attributes([
# Get specific block/collection using combination of block_id and context_key
Fields.block_id,
Fields.block_type,
Fields.context_key,
Fields.org,
Expand Down

0 comments on commit 610aaf3

Please sign in to comment.