How to instantiate a BooleanQuery in Lucene 6.x ? How to use Boolean Query to add other queries in it ?
In Lucene 4.x we use BooleanQuery as follow:
BooleanQuery booleanQuery = new BooleanQuery();
booleanQuery.add(query1, BooleanClause.Occur.MUST);
booleanQuery.add(query2, BooleanClause.Occur.MUST);
How this can be achieved in Lucene 6.