refresh.asciidoc 885 B

1234567891011121314151617181920212223242526
  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. $ curl -XPOST 'http://localhost:9200/twitter/_refresh'
  11. --------------------------------------------------
  12. [float]
  13. === Multi Index
  14. The refresh API can be applied to more than one index with a single
  15. call, or even on `_all` the indices.
  16. [source,js]
  17. --------------------------------------------------
  18. $ curl -XPOST 'http://localhost:9200/kimchy,elasticsearch/_refresh'
  19. $ curl -XPOST 'http://localhost:9200/_refresh'
  20. --------------------------------------------------