Skip to content
Browse files

added preference setting

  • Loading branch information...
1 parent 3693374 commit e95bd222078c93657fd11ae3397ba5e97d81126b Missy committed May 2, 2013
Showing with 5 additions and 4 deletions.
  1. +5 −4 bin/squirrel.rb
View
9 bin/squirrel.rb
@@ -86,10 +86,11 @@
cmd.define :clear_filter_cache, :type => :boolean, :default => nil, :description => 'Clear filter cache expected true/false, defaults to nil'
end
Settings.define_command :replay, :description => "Replay slow log queries" do |cmd|
- cmd.define :host, :default => nil, :description => 'The host to connect to, defaults to nil'
- cmd.define :port, :type => Integer, :default => nil, :description => 'The port to connect to on the host, defaults to nil'
- cmd.define :execute_slow_queries, :default => nil, :description => 'Execute the slow log queries in the provided log file,ie --execute_slow_log=/var/log/elasticsearch/padraig.log, defaults to nil'
- cmd.define :batch_size, :type => Integer, :default => nil, :description => 'The number of lines to process at once, defaults to nil'
+ cmd.define :host, :default => nil, :description => 'The host to connect to, defaults to nil'
+ cmd.define :port, :type => Integer, :default => nil, :description => 'The port to connect to on the host, defaults to nil'
+ cmd.define :execute_slow_queries, :default => nil, :description => 'Execute the slow log queries in the provided log file,ie --execute_slow_log=/var/log/elasticsearch/padraig.log, defaults to nil'
+ cmd.define :batch_size, :type => Integer, :default => nil, :description => 'The number of lines to process at once, defaults to nil'
+ cmd.define :preference, :type => Array, :default => [true,"_primary_first"], :description => 'Turn on/off preference and set it,ie --preference=true,_primary_first'
end
Settings.define_command :index_settings, :description => "Change the index settings" do |cmd|
cmd.define :host, :default => nil, :description => 'The host to connect to, defaults to nil'

0 comments on commit e95bd22

Please sign in to comment.
Something went wrong with that request. Please try again.