Wiki::...h::SII(3pm)
π NAME π
Okay so bestie, this is the Wiki::...h::SII(3pm) page from the User Contributed Perl Documentation, and the actual main character is Wiki::Toolkit::Search::SII β the 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");
It provides all the search-related methods for Wiki::Toolkit. β¨
Also, see Wiki::Toolkit::Search::Base for the methods that are not documented here β iykyk. π«Ά
β¨ METHODS β¨
new π
Pick your database era, then build the search object. The code is giving options, and you literally just follow the comments:
# 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 );
π¨newtakes only one parameter, and that parameter is mandatory.indexdbmust be aSearch::InvertedIndex::DB::*object. No cap.
π SEE ALSO π
Wiki::ToolkitWiki::Toolkit::Search::Base
Thatβs the whole vibe, bestie β from perl v5.32.0, dated 2021-01-04, page Wiki::...h::SII(3pm). Bye π
π
π¦ where this page comes from
- debian bookworm: libwiki-toolkit-perl 0.86-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- debian trixie: libwiki-toolkit-perl 0.86-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu jammy: libwiki-toolkit-perl 0.86-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: libwiki-toolkit-perl 0.86-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libwiki-toolkit-perl 0.86-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libwiki-toolkit-perl 0.86-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms