WARNING: Version 5.x has passed its EOL date.
This documentation is no longer being maintained and may be removed. If you are running this version, we strongly advise you to upgrade. For the latest information, see the current release documentation.
Refresh
editRefresh
editThe refresh API allows to explicitly refresh one or more index, making all operations performed since the last refresh available for search. The (near) real-time capabilities depends on the index engine used. For example, the robin one requires refresh to be called, but by default a refresh is scheduled periodically.
Refresh all
editvar r = this.ConnectedClient.Refresh();
Index / Indeces
editvar r = this.ConnectedClient.Refresh("index"); r = this.ConnectedClient.Refresh(new [] {"index4", "index2" });
Typed (default index)
editvar r = this.ConnectedClient.Refresh<ElasticSearchProject>();