You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Oliver Eilhard edited this page Feb 13, 2018
·
2 revisions
The Flush service allows to flush one or more indices. The flush process of an index basically frees memory from the index by flushing data to the index storage and clearing the internal transaction log.
// Flush to make sure the documents got written.ctx:=context.Background()
_, err=client.Flush().Index("twitter").Do(ctx)
iferr!=nil {
panic(err)
}