elasticsearch-ruby

https://github.com/elastic/elasticsearch-ruby

Ruby

Ruby integrations for Elasticsearch

Elasticsearch::Transport::Transport::Base#get_connection

Returns a connection from the connection pool by delegating to {Connections::Collection#get_connection}.

Resurrects dead connection if the `resurrect_after` timeout has passed.
Increments the counter and performs connection reloading if the `reload_connections` option is set.

Source | Google | Stack overflow

Edit

git clone [email protected]:elastic/elasticsearch-ruby.git

cd elasticsearch-ruby

open elasticsearch-transport/lib/elasticsearch/transport/transport/base.rb

Contribute

# Make a new branch

git checkout -b -your-name--update-docs-Elasticsearch--Transport--Transport--Base-get_connection-for-pr


# Commit to git

git add elasticsearch-transport/lib/elasticsearch/transport/transport/base.rbgit commit -m "better docs for Elasticsearch::Transport::Transport::Base#get_connection"


# Open pull request

gem install hub # on a mac you can `brew install hub`

hub fork

git push <your name> -your-name--update-docs-Elasticsearch--Transport--Transport--Base-get_connection-for-pr

hub pull-request


# Celebrate!