Dominic Hargreaves > Wiki-Toolkit-0.82 > Wiki::Toolkit::Search::SII

Download:
Wiki-Toolkit-0.82.tar.gz

Dependencies

Annotate this POD

CPAN RT

New  1
Open  1
View/Report Bugs
Module Version: 0.09   Source   Latest Release: Wiki-Toolkit-0.84

NAME ^

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

SYNOPSIS ^

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

Provides search-related methods for Wiki::Toolkit.

See also Wiki::Toolkit::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 = Wiki::Toolkit::Search::SII->new( indexdb => $indexdb );

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

SEE ALSO ^

Wiki::Toolkit, Wiki::Toolkit::Search::Base.

syntax highlighting: