Purely Semantic Indexing for LLM-based Generative Recommendation and Retrieval