Ignorer les - dans les recherches #58

This commit is contained in:
Colin Maudry
2025-11-13 14:53:08 +01:00
parent d58183beb5
commit 9a035ae431
+3 -1
View File
@@ -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 = []