feat: Problem types added as filterable attribute [FC-0059] (#35242)

This commit is contained in:
Chris Chávez
2024-08-27 11:43:29 -05:00
committed by GitHub
parent f0d8d5262c
commit 2e77e65d1c
2 changed files with 2 additions and 0 deletions

View File

@@ -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([

View File

@@ -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