From 6ffb0214f110fd99eedb08fb87188bc311293287 Mon Sep 17 00:00:00 2001 From: Frank Elsinga Date: Thu, 15 Feb 2024 23:13:13 +0100 Subject: [PATCH] tested a different way of ordering SplittableText increasing the relevancy --- server/main-api/src/search/search_executor/query.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/main-api/src/search/search_executor/query.rs b/server/main-api/src/search/search_executor/query.rs index 1ae52ab60..edb9da552 100644 --- a/server/main-api/src/search/search_executor/query.rs +++ b/server/main-api/src/search/search_executor/query.rs @@ -122,7 +122,7 @@ impl GeoEntryQuery { .into_iter() .map(|s| match s { TextToken::Text(t) => t, - TextToken::SplittableText((t1, t2)) => format!("{t1}{t2} {t1} {t2}"), + TextToken::SplittableText((t1, t2)) => format!("{t2} {t1} {t1}{t2}"), }) .collect::>() .join(" ")