Wiki::...lucene(3pm)
π¦ NAME π¦
okay so this is the manual page for Wiki::Toolkit::Search::Plucene, and it's literally the module that lets you use Plucene to search your Wiki::Toolkit wiki. that's the whole β¨ name β¨ vibe.
π SYNOPSIS π
here's the quick little how-to, bestie:
my $search = Wiki::Toolkit::Search::Plucene->new( path => "/var/plucene/wiki" );
my %wombat_nodes = $search->search_nodes("wombat");
and yeah β it provides search-related methods for Wiki::Toolkit. slay.
β¨ METHODS β¨
π₯ new π₯
this is the constructor, main character energy. behold:
my $search = Wiki::Toolkit::Search::Plucene->new(
path => "/var/plucene/wiki",
content_munger => sub {
my $content = shift;
$content =~ s/secretword//gs;
return $content;
},
node_filter => sub {
my %args = @_;
return $args{content} =~ /REDIRECT/ ? 0 : 1;
},
);
π the parameters, decoded π
pathβ this one is mandatory, no cap.pathmust be a directory for storing the indexed data. it should exist and be writeable.content_mungerβ optional, bestie. it should be a reference to a subroutine. that sub takes the node content as a string and returns another string β and that returned string is what gets indexed in place of the original content.node_filterβ also optional. it should be a reference to a subroutine. the sub gets the named argumentsnodeandcontent, and returns either true (yes, index this node) or false (no, don't index this node).
the order that matters: content munging takes place BEFORE node filtering. munging first, filtering second β don't flip it, okay? π
π SEE ALSO π
Wiki::ToolkitWiki::Toolkit::Search::Base
that's the whole page! π brought to you by perl v5.32.0, dated 2021-01-04, and filed under Wiki::...lucene(3pm) β mwah π
π¦ 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