Wiki::Toolkit::Search::Lucy - Use Lucy to search your Wiki::Toolkit wiki.
my $search = Wiki::Toolkit::Search::Lucy->new( path => "/var/lucy/wiki" ); my %wombat_nodes = $search->search_nodes( "wombat" );
Provides Lucy-based search methods for Wiki::Toolkit.
my $search = Wiki::Toolkit::Search::Lucy->new( path => "/var/lucy/wiki" );
Takes only one parameter, which is mandatory. path must be a directory for storing the indexed data. It should exist and be writeable.
path
$search->index_node( $node, $content );
Indexes or reindexes the given node in the search engine indexes. You must supply both the node name and its content.
# Find all the nodes which contain the word 'expert'. my %results = $search->search_nodes( "expert" );
Returns a (possibly empty) hash whose keys are the node names and whose values are the scores.
Defaults to AND searches (if $and_or is not supplied, or is anything other than OR or or).
$and_or
OR
or
Searches are case-insensitive.
Wiki::Toolkit, Wiki::Toolkit::Search::Base.
To install Wiki::Toolkit, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Wiki::Toolkit
CPAN shell
perl -MCPAN -e shell install Wiki::Toolkit
For more information on module installation, please visit the detailed CPAN module installation guide.