bug fix: require search string to be in filepath to produce same
authordpavlin <dpavlin@8392b6e1-25fa-0310-8288-cc32f8e212ea>
Sun, 28 Aug 2005 17:53:46 +0000 (17:53 +0000)
committerdpavlin <dpavlin@8392b6e1-25fa-0310-8288-cc32f8e212ea>
Sun, 28 Aug 2005 17:53:46 +0000 (17:53 +0000)
results from HyperEstraier as from RDBMS.

git-svn-id: svn+ssh://llin/home/dpavlin/private/svn/BackupPC/trunk@91 8392b6e1-25fa-0310-8288-cc32f8e212ea

lib/BackupPC/CGI/SearchArchives.pm
lib/BackupPC/SearchLib.pm

index 73294b9..a8149e3 100644 (file)
@@ -59,7 +59,7 @@ sub action() {
 </p>
 
 <p style="color: gray;">
-       <input type="checkbox" name="use_hest"> use faster but less accurate full-text search engine
+       <input type="checkbox" name="use_hest"> use faster full-text search engine
 </p>
 
 <input type="hidden" value="search" name="action">
index 3b5c5cf..579e03d 100644 (file)
@@ -196,8 +196,10 @@ sub getFilesHyperEstraier($) {
        my $shareid = $param->{'search_share'};
 
        if (length($q) > 0) {
-               $q =~ s/(.)/$1 /g;
+               # exact match
+               $cond->add_attr("filepath ISTRINC $q");
 
+               $q =~ s/(.)/$1 /g;
                # set the search phrase to the search condition object
                $cond->set_phrase($q);
        }