15 |
my $dsn = $Conf{SearchDSN}; |
my $dsn = $Conf{SearchDSN}; |
16 |
my $db_user = $Conf{SearchUser} || ''; |
my $db_user = $Conf{SearchUser} || ''; |
17 |
|
|
18 |
my $index_path = $Conf{HyperEstraierIndex}; |
my $hest_index_path = $Conf{HyperEstraierIndex}; |
|
if ($index_path) { |
|
|
$index_path = $TopDir . '/' . $index_path; |
|
|
$index_path =~ s#//#/#g; |
|
|
} |
|
19 |
|
|
20 |
my $dbh; |
my $dbh; |
21 |
|
|
194 |
my $offset = $param->{'offset'} || 0; |
my $offset = $param->{'offset'} || 0; |
195 |
$offset *= $on_page; |
$offset *= $on_page; |
196 |
|
|
197 |
die "no index_path?" unless ($index_path); |
die "no index_path?" unless ($hest_index_path); |
198 |
|
|
199 |
use HyperEstraier; |
use HyperEstraier; |
200 |
|
|
201 |
my ($index_path, $index_node_url) = getHyperEstraier_url($index_path); |
my ($index_path, $index_node_url) = getHyperEstraier_url($hest_index_path); |
202 |
|
|
203 |
# open the database |
# open the database |
204 |
my $db; |
my $db; |