diff --git a/lib/ElasticSearchX/Model/Document/Set.pm b/lib/ElasticSearchX/Model/Document/Set.pm index 2d2fda3fd..7adc669ca 100644 --- a/lib/ElasticSearchX/Model/Document/Set.pm +++ b/lib/ElasticSearchX/Model/Document/Set.pm @@ -54,7 +54,7 @@ my $get = \&get; my $inflate_result = \&inflate_result; *inflate_result = sub { my ( $self, $res ) = @_; - my $new_res = { %$res }; + my $new_res = {%$res}; delete $new_res->{_index}; delete $new_res->{_type}; $self->$inflate_result($new_res);