Persisting inverted index to disk.