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

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