[Bio] / FigWebServices / index.cgi Repository:
ViewVC logotype

Diff of /FigWebServices/index.cgi

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

revision 1.138, Sun Jan 2 19:19:26 2011 UTC revision 1.139, Thu Jan 27 22:36:58 2011 UTC
# Line 40  Line 40 
40  use HTML;  use HTML;
41    
42  my $have_sphinx;  my $have_sphinx;
43    my $sphinx_search_mode;
44  BEGIN {  BEGIN {
45      eval {      eval {
46          require Sphinx::Search;          require Sphinx::Search;
47            #
48            # Assign this up here where we know the symbol is available.
49            #
50            $sphinx_search_mode = &Sphinx::Search::SPH_MATCH_EXTENDED();
51          $have_sphinx++;          $have_sphinx++;
52      };      };
53  }  }
# Line 968  Line 972 
972              $offset = 0;              $offset = 0;
973          }          }
974          $sphinx->SetLimits($offset, $cgi->param("maxpeg"));          $sphinx->SetLimits($offset, $cgi->param("maxpeg"));
975          no strict 'subs';          $sphinx->SetMatchMode($sphinx_search_mode);
         $sphinx->SetMatchMode(Sphinx::Search::SPH_MATCH_EXTENDED);  
         use strict 'subs';  
976          print STDERR "pattern=$pattern\n";          print STDERR "pattern=$pattern\n";
977          my $res = $sphinx->Query($pattern);          my $res = $sphinx->Query($pattern);
978    

Legend:
Removed from v.1.138  
changed lines
  Added in v.1.139

MCS Webmaster
ViewVC Help
Powered by ViewVC 1.0.3