README.md in ej-0.1.4 vs README.md in ej-0.1.5

- old
+ new

@@ -1,10 +1,13 @@ -# Ej +# Ej +[![Build Status](https://secure.travis-ci.org/toyama0919/ej.png?branch=master)](http://travis-ci.org/toyama0919/ej) +[![Gem Version](https://badge.fury.io/rb/ej.svg)](http://badge.fury.io/rb/ej) + elasticsearch command line utility -required ruby version >= 2.0 +support ruby version >= 2.1 ![ej4.gif](https://qiita-image-store.s3.amazonaws.com/0/26670/116a381c-98f6-aa72-fbd9-ddc4b179b744.gif) ## Installation @@ -33,37 +36,48 @@ ej -s -h other_host:9201 ``` ### query search and index ```bash -ej -s "ip_address: 127.0.0.1" -i logstash-2014.07.01 +ej -s "ip_address: 127.0.0.1" -i logstash-2014.07.01 -h other_host ``` ### index list ```bash ej -l -h other_host ``` ### count ```bash -ej -c "log_date: 2014-01-15" +ej -c "log_date: 2014-01-15" -h other_host ``` -### facet -```bash -ej -f session_id -q "log_date: 2014-01-15" -``` - ### mapping ```bash -ej -m +ej -m -h other_host ``` ### delete index ```bash ej delete -i logstash-2014.07.01 -h other_host ``` +### copy index from remote to remote +```bash +ej copy --source remote_host1:9200 --dest remote_host2:9200 -i logstash-2017.01.27 -q 'size: 631' +``` + +## monitor + +### node stats +```bash +ej nodes_stats -h remote_host1 +``` + +### settings +```bash +ej settings -h remote_host1 +``` ## Contributing 1. Fork it ( http://github.com/toyama0919/ej/fork ) 2. Create your feature branch (`git checkout -b my-new-feature`)