FIX: Load categories for AI search results (#614)
Categories should be preloaded when "lazy load categories" is enabled.
This commit is contained in:
parent
0069256efd
commit
5861418e9d
|
@ -20,6 +20,7 @@ module DiscourseAi
|
|||
term: query,
|
||||
search_context: guardian,
|
||||
use_pg_headlines_for_excerpt: false,
|
||||
can_lazy_load_categories: guardian.can_lazy_load_categories?,
|
||||
)
|
||||
|
||||
semantic_search = DiscourseAi::Embeddings::SemanticSearch.new(guardian)
|
||||
|
|
Loading…
Reference in New Issue