refresh.asciidoc 880 B

123456789101112131415161718192021222324252627282930
  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,js]
  9. --------------------------------------------------
  10. POST /twitter/_refresh
  11. --------------------------------------------------
  12. // CONSOLE
  13. // TEST[setup:twitter]
  14. [float]
  15. === Multi Index
  16. The refresh API can be applied to more than one index with a single
  17. call, or even on `_all` the indices.
  18. [source,js]
  19. --------------------------------------------------
  20. POST /kimchy,elasticsearch/_refresh
  21. POST /_refresh
  22. --------------------------------------------------
  23. // CONSOLE
  24. // TEST[s/^/PUT kimchy\nPUT elasticsearch\n/]