Fixing search query for autobus burguillos sevilla.

This commit is contained in:
Sergiotarxz 2025-01-10 04:05:27 +01:00
parent 115c198bb6
commit 9f98c1bce4
2 changed files with 4 additions and 2 deletions

View File

@ -38,6 +38,7 @@ sub sitemap ($self) {
'',
'bus',
'autobus',
'autobus burguillos sevilla',
];
for my $search (@$searches) {
$dom->child_nodes->first->append_content(

View File

@ -17,8 +17,9 @@ use Lingua::Stem::Snowball;
sub normalize($self, $text) {
return undef if !defined $text;
my $decomposed = NFKD($text);
$decomposed =~ s/\bautobus\b/horario autobus/gi;
$decomposed =~ s/\bbus\b/horario autobus/gi;
$decomposed =~ s/\bautobus\b/horario autobus martillo/gi;
$decomposed =~ s/\bbus\b/horario autobus martillo/gi;
$decomposed =~ s/\bautobus burguillos sevilla\b/horario autobus martillo/gi;
$decomposed =~ s/\bhack\S+\b/hack/gi;
$decomposed =~ s/\p{NonspacingMark}//g;
$decomposed =~ s/\bEl\b//gi;