From ff6a5bc5f18ab6c989199c5f6895af17d303ba42 Mon Sep 17 00:00:00 2001 From: Maxim Karmatskikh Date: Mon, 20 Nov 2023 20:24:02 +0100 Subject: [PATCH] UBERF-4325: Boost titles Signed-off-by: Maxim Karmatskikh --- server/elastic/src/adapter.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/elastic/src/adapter.ts b/server/elastic/src/adapter.ts index ceb6188af7..16205fd142 100644 --- a/server/elastic/src/adapter.ts +++ b/server/elastic/src/adapter.ts @@ -117,8 +117,8 @@ class ElasticAdapter implements FullTextAdapter { flags: 'OR|PREFIX|PHRASE|FUZZY|NOT|ESCAPE', default_operator: 'and', fields: [ - 'searchTitle^5', // Boost matches in searchTitle by a factor of 5 - 'searchShortTitle^5', + 'searchTitle^15', // boost + 'searchShortTitle^15', '*' // Search in all other fields without a boost ] }