1Wiki::Toolkit::Search::USsIeIr(3C)ontributed Perl DocumeWnitkait:i:oTnoolkit::Search::SII(3)
2
3
4

NAME

6       Wiki::Toolkit::Search::SII - Search::InvertedIndex plugin for
7       Wiki::Toolkit.
8

SYNOPSIS

10         my $indexdb = Search::InvertedIndex::DB::Mysql->new( ... );
11         my $search = Wiki::Toolkit::Search::SII->new( indexdb => $indexdb );
12         my %wombat_nodes = $search->search_nodes("wombat");
13
14       Provides search-related methods for Wiki::Toolkit.
15
16       See also Wiki::Toolkit::Search::Base, for methods not documented here.
17

METHODS

19       new
20             # EITHER
21
22             my $indexdb = Search::InvertedIndex::DB::Mysql->new(
23                              -db_name    => $dbname,
24                              -username   => $dbuser,
25                              -password   => $dbpass,
26                      -hostname   => '',
27                              -table_name => 'siindex',
28                              -lock_mode  => 'EX' );
29
30             # OR
31
32             my $indexdb = Search::InvertedIndex::DB::DB_File_SplitHash->new(
33                              -map_name  => "/home/wiki/indexes.db",
34                              -lock_mode => "EX" );
35
36             # THEN
37
38             my $search = Wiki::Toolkit::Search::SII->new( indexdb => $indexdb );
39
40           Takes only one parameter, which is mandatory. "indexdb" must be a
41           "Search::InvertedIndex::DB::*" object.
42

SEE ALSO

44       Wiki::Toolkit, Wiki::Toolkit::Search::Base.
45
46
47
48perl v5.28.1                      2016-12-16     Wiki::Toolkit::Search::SII(3)
Impressum