Language models as semantic indexers