43 |
$cond->set_max( $on_page ); |
$cond->set_max( $on_page ); |
44 |
$cond->set_skip( $skip ); |
$cond->set_skip( $skip ); |
45 |
|
|
46 |
my $nres = $node->search($cond, 0); |
my $nres = $node->search($cond, ( $config->{estraier}->{depth} || 0 ) ); |
47 |
|
|
48 |
my $max = 0; |
my $max = 0; |
49 |
|
|
50 |
if (defined($nres)) { |
if (defined($nres)) { |
51 |
$max = $nres->hits; |
$max = $nres->hits; |
52 |
print "Got ", $nres->hits, " results for $search\n"; |
print qq{ |
53 |
|
<div id="status_update" style="display:none;"> |
54 |
|
Got $max results for $search |
55 |
|
</div> |
56 |
|
}; |
57 |
|
|
58 |
sub html_snippet { |
sub html_snippet { |
59 |
my $text = shift || return; |
my $text = shift || return; |