from doc in docs
where doc["@metadata"]["Raven-Entity-Name"] != null
select new { Tag = doc["@metadata"]["Raven-Entity-Name"] };
I didn't manage to make it compilable. What docs is? Is it documentSession.Query<Something>? It doesn't work this way as my entities do not contain indexer.