refresh #
Available since 2.0.0
Forces an immediate reindexation of the provided collection.
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.
Use security:refresh to trigger a refresh on a security collection (users
, profiles
or roles
)
Query Syntax #
HTTP #
URL: http://kuzzle:7512/<index>/<collection>/_refresh
Method: POST
Other protocols #
{
"index": "<index>",
"collection": "<collection>",
"controller": "collection",
"action": "refresh"
}
Arguments #
index
: index name to refreshcollection
: collection name to refresh
Response #
Returns a response with status
200 if the refresh succeeds.
{
"status": 200,
"error": null,
"index": "<index>",
"collection": "<collection>",
"controller": "collection",
"action": "refresh",
"requestId": "<unique request identifier>",
"result": null
}
Possible errors #
Edit this page on Github (opens new window)