To me, if the document has not been indexed, search on the repository won't return it. Is there any API to use to check if the document has been indexed after saving it into the repository?
I can definitely search again and again to see if it has been indexed. But this is not a good solution.