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 19, 2024
1 parent 6025c77 commit d911d3c
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 d911d3c

Please sign in to comment.