/[nn.old]/trunk/search/nn-swish.cgi
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /trunk/search/nn-swish.cgi

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 79 by dpavlin, Sat Jul 6 13:13:27 2002 UTC revision 83 by dpavlin, Wed Sep 18 10:03:18 2002 UTC
# Line 2  Line 2 
2    
3  use strict;  use strict;
4  use CGI qw/:standard -no_xhtml/;  use CGI qw/:standard -no_xhtml/;
 use Text::Query;  
5  use CGI::Carp qw(fatalsToBrowser);  use CGI::Carp qw(fatalsToBrowser);
6  use SWISH;  use SWISH;
7  use Unicode::String qw(utf8 utf16);  use Unicode::String qw(utf8 utf16);
# Line 28  if (param('search')) { Line 27  if (param('search')) {
27                  if (m/^([+-])(\S+)/) {                  if (m/^([+-])(\S+)/) {
28                          $s.= ($s) ? "and " : "";                          $s.= ($s) ? "and " : "";
29                          $s.="not " if ($1 eq "-");                          $s.="not " if ($1 eq "-");
30                          $s.="$2 ";                          $s.="$2* ";
31                  } else {                  } else {
32                          $s .= "$_ ";                          $s .= "$_* ";
33                  }                  }
34          }          }
35          $s=~tr/šðžèæŠÐŽÈÆ/¹ð¾èæ©Ð®ÈÆ/;  # 1250 -> iso8859-2          $s=~tr/šðžèæŠÐŽÈÆ/¹ð¾èæ©Ð®ÈÆ/;  # 1250 -> iso8859-2

Legend:
Removed from v.79  
changed lines
  Added in v.83

  ViewVC Help
Powered by ViewVC 1.1.26