Skip to content

Commit

Permalink
store drop method
Browse files Browse the repository at this point in the history
  • Loading branch information
nics committed Mar 10, 2014
1 parent fe18b8f commit d6e0915
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Build.PL
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ my $builder = Module::Build->new(
'perl' => '5.10.1',
'Catmandu' => '0.8',
'CQL::Parser' => '1.12',
'Elasticsearch::Compat' => '0.03',
'Elasticsearch::Compat' => '0.04',
'Moo' => '1.00',
},
add_to_cleanup => [qw(
Expand Down
9 changes: 5 additions & 4 deletions lib/Catmandu/Store/ElasticSearch.pm
Original file line number Diff line number Diff line change
Expand Up @@ -100,9 +100,9 @@ sub BUILD {
}
}

sub delete_index {
sub drop {
my ($self) = @_;
$self->elastic_search->delete_index();
$self->elastic_search->delete_index;
}

=head1 METHODS
Expand All @@ -121,7 +121,7 @@ contains a translation of CQL fields into Elasticsearch searchable fields.
'all' => 1 ,
'=' => 1 ,
'<>' => 1 ,
'exact' => {field => [qw(mytitle.exact myalttitle.exact)]}
'exact' => {field => [qw(mytitle.exact myalttitle.exact)]}
} ,
sort => 1,
field => 'mytitle',
Expand Down Expand Up @@ -152,7 +152,7 @@ subroutine which returns a string or an ARRAY of string with augmented title(s).
1;
=head2 delete_index
=head2 drop
Deletes the elasticsearch index backing this store. Calling functions after
this may fail until this class is reinstantiated, creating a new index.
Expand All @@ -168,6 +168,7 @@ Nicolas Steenlant, C<< <nicolas.steenlant at ugent.be> >>
=head1 CONTRIBUTORS
Dave Sherohman, C<< dave.sherohman at ub.lu.se >>
Robin Sheat, C<< robin at kallisti.net.nz >>
=head1 LICENSE AND COPYRIGHT
Expand Down

0 comments on commit d6e0915

Please sign in to comment.