From 50cc1de1f843380ebda1e32b77d981a73a415f2c Mon Sep 17 00:00:00 2001 From: Bilel KIHAL Date: Thu, 1 Aug 2024 00:21:28 +0200 Subject: [PATCH] fix agents search sensibility --- controllers/search_controller.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/controllers/search_controller.rb b/controllers/search_controller.rb index cf2d76c6..d25af600 100644 --- a/controllers/search_controller.rb +++ b/controllers/search_controller.rb @@ -63,7 +63,7 @@ class SearchController < ApplicationController page_size: page_size, sort: sort }) - + total_found = page_data.aggregate ontology_rank = LinkedData::Models::Ontology.rank docs = {} @@ -154,7 +154,6 @@ class SearchController < ApplicationController fq = "agentType_t:#{type}" if type qf = [ - "acronymSuggestEdge^25 nameSuggestEdge^15 emailSuggestEdge^15 identifiersSuggestEdge^10 ", # start of the word first "identifiers_texts^20 acronym_text^15 name_text^10 email_text^10 ", # full word match "acronymSuggestNgram^2 nameSuggestNgram^1.5 email_text^1" # substring match last ].join(' ')