It would be nice if the Lucene query hit count could be retrieved when someone executes a query. My ideas is to provide the following query extension method:
public static IEnumerator<T> Execute<T>(this IQueryable<T> source, out int totalCount)
{
var query = source as LuceneQueryable<T>;
var provider = query.Provider as QueryProviderBase;
var executor = provider.Executor as LuceneQueryExecutor<T>;
var queryModel = provider.GenerateQueryModel(source.Expression);
// TODO: finish
}
I started to implement this, however I realized soon that this would require massive refactoring of LuceneQueryExecutor.ExecuteCollection, so maybe it would be better to leave it for the author.
It would be nice if the Lucene query hit count could be retrieved when someone executes a query. My ideas is to provide the following query extension method:
I started to implement this, however I realized soon that this would require massive refactoring of LuceneQueryExecutor.ExecuteCollection, so maybe it would be better to leave it for the author.