Fixing search query for autobus burguillos sevilla.
This commit is contained in:
parent
115c198bb6
commit
9f98c1bce4
@ -38,6 +38,7 @@ sub sitemap ($self) {
|
||||
'',
|
||||
'bus',
|
||||
'autobus',
|
||||
'autobus burguillos sevilla',
|
||||
];
|
||||
for my $search (@$searches) {
|
||||
$dom->child_nodes->first->append_content(
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user