Elastic::Model::Deleted - A class to represent deleted doc objects which are still in scope
version 0.27
When an object in scope is deleted, it is reblessed into Elastic::Model::Deleted, which throws an error if any method other than those listed below are called.
For instance:
$user = $domain->get( user => 1 ); $user->delete; print $user->name; # throws error
$uid = $deleted_doc->uid
The original UID of the deleted doc.
1 == $deleted->has_been_deleted()
Returns true without checking Elasticsearch. This method is provided so that it can be called in an "on_conflict" in Elastic::Model::Role::Doc handler.
Also see "has_been_deleted()" in Elastic::Model::Role::Doc.
Clinton Gormley <drtech@cpan.org>
This software is copyright (c) 2013 by Clinton Gormley.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install Elastic::Model, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Elastic::Model
CPAN shell
perl -MCPAN -e shell install Elastic::Model
For more information on module installation, please visit the detailed CPAN module installation guide.