--- trunk/Estraier.pm 2006/01/28 19:18:13 98 +++ trunk/Estraier.pm 2006/01/28 19:41:59 100 @@ -50,6 +50,8 @@ $cond->set_phrase("rainbow AND lullaby"); my $nres = $node->search($cond, 0); + print "Got ", $nres->hits, " results\n"; + if (defined($nres)) { # for each document in results for my $i ( 0 ... $nres->doc_num - 1 ) { @@ -734,6 +736,9 @@ print $res->doc_num; +This will return real number of documents (limited by C). +If you want to get total number of hits, see C. + =cut sub doc_num { @@ -765,7 +770,7 @@ Return specific hint from results. - print $rec->hint( 'VERSION' ); + print $res->hint( 'VERSION' ); Possible hints are: C, C, C, C, C, C, C