[libcatmandu-perl] 50/101: more delete command examples
Jonas Smedegaard
dr at jones.dk
Tue Feb 23 13:43:53 UTC 2016
This is an automated email from the git hooks/post-receive script.
js pushed a commit to branch master
in repository libcatmandu-perl.
commit 2347383a69370e056e2bb54ea72c4d0251022acd
Author: Nicolas Steenlant <nicolas.steenlant at ugent.be>
Date: Mon Jan 18 14:08:53 2016 +0100
more delete command examples
---
lib/Catmandu/Cmd/delete.pm | 11 ++++++++++-
1 file changed, 10 insertions(+), 1 deletion(-)
diff --git a/lib/Catmandu/Cmd/delete.pm b/lib/Catmandu/Cmd/delete.pm
index 1d745e7..81b0220 100644
--- a/lib/Catmandu/Cmd/delete.pm
+++ b/lib/Catmandu/Cmd/delete.pm
@@ -51,9 +51,18 @@ Catmandu::Cmd::delete - delete objects from a store
catmandu delete <STORE> <OPTIONS>
+
+ # delete items with matching _id
+ catmandu delete ElasticSearch --index-name items --bag book \
+ --id 1234 --id 2345
+
+ # delete items matching the query
catmandu delete ElasticSearch --index-name items --bag book \
--query 'title:"My Rabbit"'
+ # delete all items
+ catmandu delete ElasticSearch --index-name items --bag book
+
catmandu help store ElasticSearch
-
+
=cut
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/libcatmandu-perl.git
More information about the Pkg-perl-cvs-commits
mailing list