From cf1b9368d1534afa766c17224a9a1b1bf679e8d9 Mon Sep 17 00:00:00 2001 From: in2 Date: Wed, 25 Jun 2003 08:06:15 +0000 Subject: save title into FuzzyIndex git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@967 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- blog/builddb.pl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'blog') diff --git a/blog/builddb.pl b/blog/builddb.pl index 1cec2615..17c681fe 100755 --- a/blog/builddb.pl +++ b/blog/builddb.pl @@ -134,7 +134,8 @@ sub builddata($$$$$$) $dat{"$currid.short"} = ("$c[0]\n$c[1]\n$c[2]\n$c[3]\n"); $idx->delete($currid) if( $idx->findkey($currid) ); - $idx->insert($currid, $rbh->{"$_.content"}); + $idx->insert($currid, ($dat{"$currid.title"}. "\n". + $rbh->{"$_.content"})); if( !$contentonly ){ debugmsg("\tbuilding $currid linking... "); -- cgit v1.2.3