refresh.asciidoc 870 B

12345678910111213141516171819202122232425262728
  1. [[indices-refresh]]
  2. === Refresh
  3. The refresh API allows to explicitly refresh one or more index, making
  4. all operations performed since the last refresh available for search.
  5. The (near) real-time capabilities depend on the index engine used. For
  6. example, the internal one requires refresh to be called, but by default a
  7. refresh is scheduled periodically.
  8. [source,console]
  9. --------------------------------------------------
  10. POST /twitter/_refresh
  11. --------------------------------------------------
  12. // TEST[setup:twitter]
  13. [float]
  14. ==== Multi Index
  15. The refresh API can be applied to more than one index with a single
  16. call, or even on `_all` the indices.
  17. [source,console]
  18. --------------------------------------------------
  19. POST /kimchy,elasticsearch/_refresh
  20. POST /_refresh
  21. --------------------------------------------------
  22. // TEST[s/^/PUT kimchy\nPUT elasticsearch\n/]