Open the index at indexPath and return 0 if the index was opened successfully, or non-zero if the index could not be opened.