jruby-elasticsearch 0.0.13 → 0.0.14

Sign up to get free protection for your applications and to get access to all the features.
@@ -13,6 +13,7 @@ class ElasticSearch::Client
13
13
  # :host => "hostname" - the hostname to connect to.
14
14
  # :port => 9200 - the port to connect to
15
15
  # :cluster => "clustername" - the cluster name to use
16
+ # :node_name => "node_name" - the node name to use when joining the cluster
16
17
  def initialize(options={})
17
18
  builder = org.elasticsearch.node.NodeBuilder.nodeBuilder
18
19
  builder.client(true)
@@ -40,6 +41,10 @@ class ElasticSearch::Client
40
41
  builder.settings.put('network.host', options[:bind_host])
41
42
  end
42
43
 
44
+ if options[:node_name]
45
+ builder.settings.put('node.name', options[:node_name])
46
+ end
47
+
43
48
  if !options[:cluster].nil?
44
49
  builder.clusterName(options[:cluster])
45
50
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jruby-elasticsearch
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.13
4
+ version: 0.0.14
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-05-29 00:00:00.000000000 Z
12
+ date: 2012-07-05 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description: ! '...'
15
15
  email: