private Query toTwoHandSidedQuery(Operation<?> operation, Occur occur,
            QueryMetadata metadata) {
        Query lhs = toQuery(operation.getArg(0), metadata);
        Query rhs = toQuery(operation.getArg(1), metadata);
        BooleanQuery bq = new BooleanQuery();
        bq.add(createBooleanClause(lhs, occur));
        bq.add(createBooleanClause(rhs, occur));
        return bq;
    }
Serializes Querydsl queries to Lucene queries.

@author vema
querydsl-lucene5/src/main/java/com/querydsl/lucene5/LuceneSerializer.java