Convert a LuceneQuery to a string.