Wiki::...h::SII(3pm)

πŸ“¦
version 0.86 Β· 3 versions
, in debian bookworm, debian trixie, ubuntu jammy, ubuntu noble, ubuntu resolute, ubuntu stonking

πŸ’– 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 );
🚨 new takes only one parameter, and that parameter is mandatory. indexdb must be a Search::InvertedIndex::DB::* object. No cap.

🌈 SEE ALSO 🌈

  • Wiki::Toolkit
  • Wiki::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