From bd16bd4b6bae6d61c0c0b1b8ff385c4ab40f6ed3 Mon Sep 17 00:00:00 2001 From: Bilel KIHAL Date: Tue, 5 Nov 2024 11:23:40 +0100 Subject: [PATCH] fix agent search not working well by adding "*" to the search query --- controllers/search_controller.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/controllers/search_controller.rb b/controllers/search_controller.rb index ce34d51d..b86a2b6b 100644 --- a/controllers/search_controller.rb +++ b/controllers/search_controller.rb @@ -148,6 +148,7 @@ class SearchController < ApplicationController namespace "/agents" do get do query = params[:query] || params[:q] + query = "#{query}*" page, page_size = page_params type = params[:agentType].blank? ? nil : params[:agentType]