feat: Problem types added as filterable attribute [FC-0059] (#35242)
This commit is contained in:
@@ -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([
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user