Get raw Lucene query after using the Examine Fluent API
Hi,
Is it possible to progmatically get the raw Lucene query generated by the Examine fluent API ?
The closest method I've found so far is query.Compile().ToString() which returns the raw query (along with another property). Is chopping this string the only way to get to the actual query ? or is there a better approach ?
Get raw Lucene query after using the Examine Fluent API
Hi,
Is it possible to progmatically get the raw Lucene query generated by the Examine fluent API ?
The closest method I've found so far is query.Compile().ToString() which returns the raw query (along with another property). Is chopping this string the only way to get to the actual query ? or is there a better approach ?
TIA,
Hendy
Hendy,
the criteria object .ToString() not the query object.
regards
Ismail
criteria.ToString() and query.ToString() both return the raw query in a string, but unfortunatley along with another property.
here's a dirty hack to get the raw query:
is working on a reply...