createIndex
Defines an index and builds it over everything already written.
No document is rewritten: an index is a set of sidecar files beside the segments that are already on disk. Runs on the calling thread, and documents still in a memtable are not indexed — call flush first if complete coverage is wanted immediately. Returns the existing handle if an index over the same path and kind is already defined.
Throws
if RaboshOptions.indexes is false.