class Elastomer::CLI::Index
Public Instance Methods
count(index, type)
click to toggle source
# File lib/elastomer/cli/index.rb, line 11 def count(index, type) response = client.docs(index, type).search({:query => {:match_all => {}}}, :search_type => :count) puts response["hits"]["total"] end
list()
click to toggle source
# File lib/elastomer/cli/index.rb, line 5 def list response = client.cluster.indices puts response.keys.sort end