reindex method
Requests Elasticsearch to delete and rebuild the index for FusionAuth users or entities. Be very careful when running this request as it will increase the CPU and I/O load on your database until the operation completes. Generally speaking you do not ever need to run this operation unless instructed by FusionAuth support, or if you are migrating a database another system and you are not brining along the Elasticsearch index.
You have been warned.
@param {ReindexRequest} request The request that contains the index name. @returns {Promise<ClientResponse
Implementation
Future<ClientResponse<void, Errors>> reindex(ReindexRequest request) {
return _start<void, Errors>()
.withUri('/api/system/reindex')
.withJSONBody(request)
.withMethod('POST')
.go();
}