From e3b0584a493d4d2178bc7c48ff89fde766ff322b Mon Sep 17 00:00:00 2001 From: Gabriel McManus Date: Thu, 17 Jul 2008 20:37:08 +1000 Subject: Use correct term prefixes when searching. The Z term prefix is for stemming and shouldn't be used here. X is for custom fields. --- IkiWiki/Plugin/search.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'IkiWiki/Plugin/search.pm') diff --git a/IkiWiki/Plugin/search.pm b/IkiWiki/Plugin/search.pm index 822b5974e..eedfa6924 100644 --- a/IkiWiki/Plugin/search.pm +++ b/IkiWiki/Plugin/search.pm @@ -123,9 +123,9 @@ sub index (@) { #{{{ $tg->index_text($caption, 2); $tg->index_text($title, 2) if $title ne $caption; $tg->index_text($toindex); - $tg->index_text(lc($title), 1, "ZS"); # for title:foo + $tg->index_text(lc($title), 1, "S"); # for title:foo foreach my $link (@{$links{$params{page}}}) { - $tg->index_text(lc($link), 1, "ZLINK"); # for link:bar + $tg->index_text(lc($link), 1, "XLINK"); # for link:bar } $doc->add_term($pageterm); -- cgit v1.2.3