diff --git a/lib/BurguillosInfo/Controller/Sitemap.pm b/lib/BurguillosInfo/Controller/Sitemap.pm index 469a079..31189a0 100644 --- a/lib/BurguillosInfo/Controller/Sitemap.pm +++ b/lib/BurguillosInfo/Controller/Sitemap.pm @@ -38,6 +38,7 @@ sub sitemap ($self) { '', 'bus', 'autobus', + 'autobus burguillos sevilla', ]; for my $search (@$searches) { $dom->child_nodes->first->append_content( diff --git a/lib/BurguillosInfo/IndexUtils.pm b/lib/BurguillosInfo/IndexUtils.pm index 26b3fd0..2428b23 100644 --- a/lib/BurguillosInfo/IndexUtils.pm +++ b/lib/BurguillosInfo/IndexUtils.pm @@ -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;