I have an expression built with Dynamic Linq that is used to query a RavenDb. I would like to be able to view the generated Lucene query so that I can evaluate if it's performant or not. I saw here a mention of the RavenDB console but I'm trying to get the query in a unit test where the db is in memory. Is there any way to get the Lucene query generated for the filter below?
var filteredPersons = persons.AsQueryable().Where(expression);
Thanks!