NAME

CGI::Wiki::Search::SII - Search::InvertedIndex plugin for CGI::Wiki.

SYNOPSIS

my $indexdb = Search::InvertedIndex::DB::Mysql->new( ... );
my $search = CGI::Wiki::Search::SII->new( indexdb => $indexdb );
my %wombat_nodes = $search->search_nodes("wombat");

Provides search-related methods for CGI::Wiki.

See also CGI::Wiki::Search::Base, for methods not documented here.

METHODS

new
  # EITHER

  my $indexdb = Search::InvertedIndex::DB::Mysql->new(
                   -db_name    => $dbname,
                   -username   => $dbuser,
                   -password   => $dbpass,
		   -hostname   => '',
                   -table_name => 'siindex',
                   -lock_mode  => 'EX' );

  # OR

  my $indexdb = Search::InvertedIndex::DB::DB_File_SplitHash->new(
                   -map_name  => "/home/wiki/indexes.db",
                   -lock_mode => "EX" );

  # THEN

  my $search = CGI::Wiki::Search::SII->new( indexdb => $indexdb );

Takes only one parameter, which is mandatory. indexdb must be a Search::InvertedIndex::DB::* object.

SEE ALSO

CGI::Wiki, CGI::Wiki::Search::Base.