From 48d1bd65bd822a88b586e7587fe1325e699ee80c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pierre-=C3=89tienne=20Lord?= Date: Tue, 4 Apr 2023 13:09:15 -0400 Subject: [PATCH] wip --- packages/geo/src/lib/search/shared/sources/workspace.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/geo/src/lib/search/shared/sources/workspace.ts b/packages/geo/src/lib/search/shared/sources/workspace.ts index f85dc04903..9af91e4b86 100644 --- a/packages/geo/src/lib/search/shared/sources/workspace.ts +++ b/packages/geo/src/lib/search/shared/sources/workspace.ts @@ -107,7 +107,7 @@ export class WorkspaceSearchSource extends SearchSource implements TextSearch { const field = foundIn.field; foundIn.result.map(index => { const feature = fswi.index.get(index); - const score = computeTermSimilarity(term.trim(), feature.properties[field]); + const score = computeTermSimilarity(termToUse.trim(), feature.properties[field]); results.push({ index, feature, layer: fswi.layer, field, score }); }); });