SDK
SDK Dart v2.x
2

refresh #

Forces an immediate reindexation of the provided security collection.

The available security collections are: users, profiles, roles.

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.

Copied to clipboard!
Future<bool> refresh(String collection)
Property Type Description
collection
String
collection name to refresh

Returns #

Returns a Future<bool>.

Usage #

Copied to clipboard!
final result = await kuzzle.security.refresh('users');