Forces an immediate reindexation (opens new window) of the provided security collection.
The available security collections are:
When writing or deleting documents in Kuzzle, the changes need to be indexed before being reflected in the search results. By default, this operation can take up to 1 second.
Forcing immediate refreshes comes with performance costs, and should only performed when absolutely necessary.
Future<bool> refresh(String collection)
| || |
|collection name to refresh|
final result = await kuzzle.security.refresh('users');
Edit this page on Github (opens new window)