Data::SearchEngine::Modifiable - A role for search engines with an updateable


Data-SearchEngine documentation Contained in the Data-SearchEngine distribution.

Index


Code Index:

NAME

Top

Data::SearchEngine::Modifiable - A role for search engines with an updateable index.

SYNOPSIS

Top

This is an add-on role that is used in conjunction with Data::SearchEngine when wrapping an index that can be updated. Since some indexes may be read only, the idea is to keep the required methods in this role separate from the base one.

METHODS

Top

add ($thing)

Adds the specified thing to the index.

present ($thing)

Returns true if the specified thing is present in the index.

remove ($thing)

Removes the specified thing from the index. Consult the documentation for your specific backend.

remove_by_id ($id)

Remove a specific thing by id.

update ($thing)

Updates the specified thing in the index.

AUTHOR

Top

Cory G Watson, <gphat at cpan.org>

COPYRIGHT & LICENSE

Top


Data-SearchEngine documentation Contained in the Data-SearchEngine distribution.

package Data::SearchEngine::Modifiable;
use Moose::Role;

requires qw(add present remove remove_by_id update);

no Moose::Role;
1;

__END__