diff options
author | in2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2003-06-25 16:06:15 +0800 |
---|---|---|
committer | in2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2003-06-25 16:06:15 +0800 |
commit | 155753c5c6de6bb9916e6c8b6a0ba00c18859c47 (patch) | |
tree | 18f40dd11c7d15ca8403781384b2cfac08625dc6 | |
parent | 501f3802cfd351a0237486c38b1b307fca59f036 (diff) | |
download | pttbbs-155753c5c6de6bb9916e6c8b6a0ba00c18859c47.tar pttbbs-155753c5c6de6bb9916e6c8b6a0ba00c18859c47.tar.gz pttbbs-155753c5c6de6bb9916e6c8b6a0ba00c18859c47.tar.bz2 pttbbs-155753c5c6de6bb9916e6c8b6a0ba00c18859c47.tar.lz pttbbs-155753c5c6de6bb9916e6c8b6a0ba00c18859c47.tar.xz pttbbs-155753c5c6de6bb9916e6c8b6a0ba00c18859c47.tar.zst pttbbs-155753c5c6de6bb9916e6c8b6a0ba00c18859c47.zip |
save title into FuzzyIndex
git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk@967 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rwxr-xr-x | pttbbs/blog/builddb.pl | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/pttbbs/blog/builddb.pl b/pttbbs/blog/builddb.pl index 1cec2615..17c681fe 100755 --- a/pttbbs/blog/builddb.pl +++ b/pttbbs/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... "); |