elasticsearch-ruby

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

Ruby

Ruby integrations for Elasticsearch

Elasticsearch::API::Indices::Actions#refresh

Refresh the index and to make the changes (creates, updates, deletes) searchable.

By default, Elasticsearch has a delay of 1 second until changes to an index are
available for search; the delay is configurable, see {Indices::Actions#put_settings}.

You can trigger this operation explicitly, for example when performing a sequence of commands
in integration tests, or when you need to perform a manual "synchronization" of the index
with an external system at given moment.

Source | Google | Stack overflow

Edit

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

cd elasticsearch-ruby

open elasticsearch-api/lib/elasticsearch/api/actions/indices/refresh.rb

Contribute

# Make a new branch

git checkout -b -your-name--update-docs-Elasticsearch--API--Indices--Actions-refresh-for-pr


# Commit to git

git add elasticsearch-api/lib/elasticsearch/api/actions/indices/refresh.rbgit commit -m "better docs for Elasticsearch::API::Indices::Actions#refresh"


# 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--API--Indices--Actions-refresh-for-pr

hub pull-request


# Celebrate!