strip normalisation results of normal and special spaces

This commit is contained in:
Sarah Hoffmann
2025-02-19 10:26:06 +01:00
parent e29823e28f
commit 55c3176957
2 changed files with 2 additions and 2 deletions

View File

@@ -244,7 +244,7 @@ class ICUQueryAnalyzer(AbstractQueryAnalyzer):
standardized form search will work with. All information removed
at this stage is inevitably lost.
"""
return cast(str, self.normalizer.transliterate(text))
return cast(str, self.normalizer.transliterate(text)).strip('-: ')
def split_query(self, query: qmod.QueryStruct) -> Tuple[QueryParts, WordDict]:
""" Transliterate the phrases and split them into tokens.