protected Query createQuery() {
        if (queryMixin.getMetadata().getWhere() == null) {
            return new MatchAllDocsQuery();
        }
        return serializer.toQuery(queryMixin.getMetadata().getWhere(), queryMixin.getMetadata());
    }
AbstractLuceneQuery is an abstract super class for Lucene query implementations

@author tiwe

@param <T> projection type
@param <Q> concrete subtype of query
querydsl-lucene3/src/main/java/com/querydsl/lucene3/AbstractLuceneQuery.java