Language Models As Semantic Indexers