-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Slow /stats update #1257
Comments
Hello @zurferr! Thanks for this report. To know when the documents are pushed and if the action succeeded you should definitely check the update status instead. Indeed, the stats route will not inform you about the failure/success status. The stats route informs you about the state of your index but should not be used for this purpose. If you use the Python SDK, you might want to use the Thanks anyway for reporting this lag 👍 |
I did not succeed to reproduce it using the |
Fixed by the integration of the new search engine in #1421 |
Describe the bug
I try to use the
isIndexing
attribute to decide, when the index is ready.To be sure I check again the attribute
numberOfDocuments
. However, whileisIndexing
returnFalse
. ThenumberOfDocuments
can return0
. If I wait longer I get the correct result.https://docs.meilisearch.com/reference/api/stats.html#get-stat-of-an-index
To Reproduce
Expected behavior
As soon as the index is ready the number of documents should be correct.
Environment:
This is not explicitly documented, so it might be intended behavior. Still it would be nice to have more guidance on this.
The text was updated successfully, but these errors were encountered: