Skip to content
Oliver Eilhard edited this page Feb 26, 2015 · 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.
_, err = client.Flush().Index("twitter").Do()
if err != nil {
    panic(err)
}
Clone this wiki locally