/[Search-Estraier]/trunk/scripts/example_searcher.pl
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/scripts/example_searcher.pl

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

revision 101 by dpavlin, Sat Jan 28 19:43:23 2006 UTC revision 102 by dpavlin, Sat Jan 28 19:46:20 2006 UTC
# Line 24  my $cond = new Search::Estraier::Conditi Line 24  my $cond = new Search::Estraier::Conditi
24  $cond->set_phrase("rainbow AND lullaby");  $cond->set_phrase("rainbow AND lullaby");
25    
26  my $nres = $node->search($cond, 0);  my $nres = $node->search($cond, 0);
 print "Got ", $nres->hits, " results\n";  
27    
28  if (defined($nres)) {  if (defined($nres)) {
29            print "Got ", $nres->hits, " results\n";
30    
31          # for each document in results          # for each document in results
32          for my $i ( 0 ... $nres->doc_num - 1 ) {          for my $i ( 0 ... $nres->doc_num - 1 ) {
33                  # get result document                  # get result document

Legend:
Removed from v.101  
changed lines
  Added in v.102

  ViewVC Help
Powered by ViewVC 1.1.26