return lambda phrases: list(
filter(lambda p: p.text,
- (Phrase(p.ptype, cast(str, normalizer.transliterate(p.text)))
+ (Phrase(p.ptype, cast(str, normalizer.transliterate(p.text)).strip('-: '))
for p in phrases)))
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.
Then result addresses contain
| town |
| Vaduz |
+
+ #3651
+ Scenario: Structured search with surrounding extra characters
+ When sending xml search query "" with address
+ | street | city | postalcode |
+ | "19 Am schrägen Weg" | "Vaduz" | "9491" |
+ Then result addresses contain
+ | house_number | road |
+ | 19 | Am Schrägen Weg |
+