public Filter asFilter() {
        return new QueryWrapperFilter(createQuery());
    }
Create a filter for constraints defined in this querydsl

@return filter
querydsl-lucene4/src/main/java/com/querydsl/lucene4/AbstractLuceneQuery.java