Oh, I misread it, it returns an index to the array, I read it as returning an ID, ok, we probably need a foreach_document_id macro.
foreach_document_id
—Reply to this email directly or view it on GitHub.