From 8939f5804841c2d5e3e6ec1f872f5000c235d479 Mon Sep 17 00:00:00 2001 From: Frank Elsinga Date: Thu, 15 Feb 2024 23:58:53 +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 edb9da552..9a5700c74 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!("{t2} {t1} {t1}{t2}"), + TextToken::SplittableText((t1, t2)) => format!("{t1} {t2} {t1}{t2}"), }) .collect::>() .join(" ")