| Data-SearchEngine documentation | Contained in the Data-SearchEngine distribution. |
Data::SearchEngine::Modifiable - A role for search engines with an updateable index.
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.
Adds the specified thing to the index.
Returns true if the specified thing is present in the index.
Removes the specified thing from the index. Consult the documentation for your specific backend.
Remove a specific thing by id.
Updates the specified thing in the index.
Cory G Watson, <gphat at cpan.org>
Copyright 2009 Cory G Watson
This program is free software; you can redistribute it and/or modify it under the terms of either: the GNU General Public License as published by the Free Software Foundation; or the Artistic License.
See http://dev.perl.org/licenses/ for more information.
| 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__