indexer: store entity as UIDs