A Lucene query syntax validator.