LuceneQuery class: implementation and tests.