logging the calculated lucene query