diff --git a/app/controllers/avo/search_controller.rb b/app/controllers/avo/search_controller.rb index 8fbf5ca824..38292321e7 100644 --- a/app/controllers/avo/search_controller.rb +++ b/app/controllers/avo/search_controller.rb @@ -47,7 +47,7 @@ def search_resource(resource) query: resource.query_scope ).handle - results_count, results = parse_results(query) + results_count, results = parse_results(query, resource) header = resource.plural_name @@ -205,7 +205,7 @@ def search_results_count(resource) end end - def parse_results(query) + def parse_results(query, resource) # When using custom search services query should return an array of hashes if query.is_a?(Array) # Apply highlight