From 9a035ae431dfc0bde5c4207c7599c0fa7839b7a1 Mon Sep 17 00:00:00 2001 From: Colin Maudry Date: Thu, 13 Nov 2025 14:53:08 +0100 Subject: [PATCH] Ignorer les - dans les recherches #58 --- src/utils.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/utils.py b/src/utils.py index eaaf9a5..084938c 100644 --- a/src/utils.py +++ b/src/utils.py @@ -454,7 +454,9 @@ def search_org(dff: pl.DataFrame, query: str, org_type: str) -> pl.DataFrame: ] # Concatenate all fields into one string per row - org_str = pl.concat_str(pl.lit(" "), pl.col(cols), separator=" ") + org_str = pl.concat_str(pl.lit(" "), pl.col(cols), separator=" ").str.replace( + "-", " " + ) # For each token, create a boolean column: True if token is found token_matches = []