CGI::Wiki::Setup::SII - Set up Search::InvertedIndex indexes for CGI::Wiki
use CGI::Wiki::Setup::SII; my $indexdb = Search::InvertedIndex::DB::Mysql->new( -db_name => $dbname, -username => $dbuser, -password => $dbpass, -hostname => '', -table_name => 'siindex', -lock_mode => 'EX' ); CGI::Wiki::Setup::SII::setup( indexdb => $indexdb );
Set up Search::InvertedIndex indexes for use with CGI::Wiki. Has only one function, setup, which takes one mandatory argument, indexdb, the Search::InvertedIndex::DB::* object to use as the backend, and one optional argument, store, a CGI::Wiki::Store::* object corresponding to existing data that you wish to (re-)index.
setup
indexdb
Search::InvertedIndex::DB::*
store
CGI::Wiki::Store::* object
Note that any pre-existing CGI::Wiki indexes stored in indexdb will be cleared by this function, so if you have existing data you probably want to use the store parameter to get it re-indexed.
Kake Pugh (kake@earth.li).
Copyright (C) 2002 Kake Pugh. All Rights Reserved.
This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
CGI::Wiki, CGI::Wiki::Setup::MySQL, DBIx::FullTextSearch
To install CGI::Wiki, copy and paste the appropriate command in to your terminal.
cpanm
cpanm CGI::Wiki
CPAN shell
perl -MCPAN -e shell install CGI::Wiki
For more information on module installation, please visit the detailed CPAN module installation guide.