From Code to Community: Sponsoring The Perl and Raku Conference 2025 Learn more

NAME

KSx::IndexManager::Plugin - base class for IndexManager plugins

SYNOPSIS

sub after_new {
my ($plugin, $self) = @_;
# do something with $self
}

METHODS

new

Create a new plugin. This is called for you automatically and you should not need to use it.

before_new

after_new

Called when creating a new Manager. before_new is passed the hashref argument to new, and after_new is passed the newly created Manager.

alter_path

Called with the Manager object and a reference to the path as a string.

before_add_doc

after_add_doc

Called when adding a document to the invindex. Both methods are passed the Manager and the object being added.