git tag [newtag]
git push origin [newtag]
Tuesday, 25 August 2015
How can I create a new tag in git?
How can I delete remote tag in git?
git push --delete origin tagname
How can I create a new branch from a tag in git?
git checkout -b [newbranch] [tag]
Saturday, 22 August 2015
How can I delete an index from Elasticsearch?
curl -XDELETE 'http://localhost:9200/[yourindexname]/'
Friday, 21 August 2015
How can I see/list all all record in Elasticsearch?
Lucene syntax:
Elasticsearch recommended:
http://localhost:9200/foo/_search?pretty=true&q=*:*&size=[NUMBEROFRECORD]
Elasticsearch recommended:
curl -XGET 'localhost:9200/foo/_search?search_type=scan&scroll=10m&size=50' -d '
{
"query" : {
"match_all" : {}
}
}'
Thursday, 20 August 2015
Subscribe to:
Posts (Atom)