jruby-elasticsearch 0.0.6 → 0.0.7

Sign up to get free protection for your applications and to get access to all the features.
@@ -8,9 +8,12 @@ class ElasticSearch::Client
8
8
  builder = org.elasticsearch.node.NodeBuilder.nodeBuilder
9
9
  builder.client(true)
10
10
 
11
+ # Use unicast discovery a host is given
11
12
  if !options[:host].nil?
12
- port = (options[:port] or "9200")
13
- builder.settings.put("es.transport.tcp.port", port)
13
+ port = (options[:port] or "9300")
14
+ builder.settings.put("discovery.zen.ping.multicast.enabled", false)
15
+ builder.settings.put("discovery.zen.ping.unicast.hosts", "#{options[:host]}:#{port}")
16
+ #builder.settings.put("es.transport.tcp.port", port)
14
17
  end
15
18
 
16
19
  if !options[:cluster].nil?
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: jruby-elasticsearch
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.0.6
5
+ version: 0.0.7
6
6
  platform: ruby
7
7
  authors:
8
8
  - Jordan Sissel
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2011-03-27 00:00:00 -07:00
13
+ date: 2011-04-19 00:00:00 -07:00
14
14
  default_executable:
15
15
  dependencies: []
16
16