Lucene query parser for resource