More work on SimpleSearch

Signed-off-by: Joshua Ferraro <jmf@liblime.com>
This commit is contained in:
Chris Nighswonger 2008-04-15 05:24:31 -04:00 committed by Joshua Ferraro
parent d50ab5e6e8
commit 743fbda69d

View file

@ -229,6 +229,7 @@ sub SimpleSearch {
my @results;
my @tmpresults;
my @zconns;
my $total_hits;
return ( "No query entered", undef, undef ) unless $query;
# Initialize & Search Zebra
@ -260,7 +261,6 @@ sub SimpleSearch {
return ( $error, undef, undef );
}
}
my $total_hits;
while ( ( my $i = ZOOM::event( \@zconns ) ) != 0 ) {
my $event = $zconns[ $i - 1 ]->last_event();
if ( $event == ZOOM::Event::ZEND ) {