Skip to content

Commit

Permalink
feat: Problem types added as filterable attribute [FC-0059] (openedx#…
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisChV authored and rediris committed Aug 27, 2024
1 parent 872d698 commit 15bfe59
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions openedx/core/djangoapps/content/search/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -323,6 +323,7 @@ def rebuild_index(status_cb: Callable[[str], None] | None = None) -> None:
Fields.type,
Fields.access_id,
Fields.last_published,
Fields.content + "." + Fields.problem_types,
])
# Mark which attributes are used for keyword search, in order of importance:
client.index(temp_index_name).update_searchable_attributes([
Expand Down
1 change: 1 addition & 0 deletions openedx/core/djangoapps/content/search/documents.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ class Fields:
created = "created"
last_published = "last_published"
block_type = "block_type"
problem_types = "problem_types"
context_key = "context_key"
org = "org"
access_id = "access_id" # .models.SearchAccess.id
Expand Down

0 comments on commit 15bfe59

Please sign in to comment.