2
0

Add FASP account search support (#34033)

This commit is contained in:
David Roetzel
2025-06-30 09:42:34 +02:00
committed by GitHub
parent 6d017dbf10
commit ac4b735c67
8 changed files with 130 additions and 3 deletions

View File

@@ -178,6 +178,12 @@ class AccountSearchService < BaseService
'search.backend' => Chewy.enabled? ? 'elasticsearch' : 'database'
)
# Trigger searching accounts using providers.
# This will not return any immediate results but has the
# potential to fill the local database with relevant
# accounts for the next time the search is performed.
Fasp::AccountSearchWorker.perform_async(@query) if options[:query_fasp]
search_service_results.compact.uniq.tap do |results|
span.set_attribute('search.results.count', results.size)
end