10 lines
206 B
Ruby
10 lines
206 B
Ruby
![]() |
require 'elasticsearch'
|
||
|
|
||
|
client = Elasticsearch::Client.new url: 'http://192.168.1.9200', log: true
|
||
|
|
||
|
client.transport.reload_connections!
|
||
|
|
||
|
client.cluster.health
|
||
|
|
||
|
client.index index: 'paste', type: 'pastes'
|