documentation-website icon indicating copy to clipboard operation
documentation-website copied to clipboard

[DOC] refresh index: clarify whether the HTTP request returns immediately or waits for the refresh to finish

Open rursprung opened this issue 1 year ago • 1 comments

What do you want to do?

  • [x] Request a change to existing documentation
  • [ ] Add new documentation
  • [ ] Report a technical problem with the documentation
  • [ ] Other

Tell us about your request. the refresh index documentation states that an API call will trigger a refresh of the index (what a surprise). what it doesn't say is whether the HTTP request will just trigger this and return immediately or whether the request will only return once the refresh is done. in the latter case one can issue that request and wait for it to terminate and be sure that the refresh is then done, in the former case one has to wait an unknown amount of time.

other APIs which allow triggering a refresh (e.g. the refresh parameter in index document) force the API call to only terminate once the refresh is done.

it'd be good if the documentation of the refresh API clearly states which behaviour this API has. i'd presume that it waits for the refresh to finish but have neither tested this nor looked at the code.

Version: n/a (all of them)

What other resources are available? n/a

rursprung avatar Nov 14 '24 15:11 rursprung

[Catch All Triage - 1, 2, 3]

dblock avatar Dec 02 '24 17:12 dblock

@rursprung @AntonEliatra Does this still require attention?

natebower avatar Jul 14 '25 19:07 natebower

yes, this still needs to be documented

rursprung avatar Jul 15 '25 06:07 rursprung

@natebower I can take this one

AntonEliatra avatar Jul 15 '25 10:07 AntonEliatra