Method: ElasticSearch::Index#refresh
- Defined in:
- lib/elasticsearch.rb
#refresh ⇒ Object
Force a refresh of this index
This basically tells elasticsearch to flush it’s buffers but not clear caches (unlike a commit in Solr) “Commits” happen automatically and are managed by elasticsearch
Returns a hash, the parsed response body from elasticsearch
64 65 66 |
# File 'lib/elasticsearch.rb', line 64 def refresh post "/#{@name}/_refresh" end |