summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorin2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2003-06-25 16:06:15 +0800
committerin2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2003-06-25 16:06:15 +0800
commitcf1b9368d1534afa766c17224a9a1b1bf679e8d9 (patch)
tree876bc79e1e3bc473262dc9d29bd08dbe3e0f6227
parentd5c1e17d4914c8409a7a741570e94e0ade6ec017 (diff)
downloadpttbbs-cf1b9368d1534afa766c17224a9a1b1bf679e8d9.tar
pttbbs-cf1b9368d1534afa766c17224a9a1b1bf679e8d9.tar.gz
pttbbs-cf1b9368d1534afa766c17224a9a1b1bf679e8d9.tar.bz2
pttbbs-cf1b9368d1534afa766c17224a9a1b1bf679e8d9.tar.lz
pttbbs-cf1b9368d1534afa766c17224a9a1b1bf679e8d9.tar.xz
pttbbs-cf1b9368d1534afa766c17224a9a1b1bf679e8d9.tar.zst
pttbbs-cf1b9368d1534afa766c17224a9a1b1bf679e8d9.zip
save title into FuzzyIndex
git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@967 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rwxr-xr-xblog/builddb.pl3
1 files changed, 2 insertions, 1 deletions
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... ");