[WIP] createPostIndex() refactoring