Add FASP account search support (#34033)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user