have a "save" API that save index content in place.