Hi,
In Lucene 4.9.0 i have:
QueryParser parser = new QueryParser("contents",analisador);
Query query = parser.parse(parametro);
BooleanQuery constrainedQuery = new BooleanQuery();
BooleanQuery inner = new BooleanQuery();
inner.add(ownerQueryX, Occur.SHOULD);
inner.add(groupQueryY, Occur.SHOULD);
constrainedQuery.add(inner, Occur.MUST);
constrainedQuery.add(query, Occur.MUST);
How migrate this to Lucene 6.0.3?
I saw BooleanQuery.Builder
<https://lucene.apache.org/core/6_3_0/core/org/apache/lucene/search/BooleanQuery.Builder.html>
but
i have problems to use.
Could someone help me please?
--
Humberto Rocha