Glad you got it sorted out. If you feel there's some documentation that
could be pushed back into Lucene in some way as well, contributions are
always welcome!
Cheers,
-Greg
On Fri, Nov 17, 2023 at 10:31 AM Tony Schwartz
wrote:
> I have been fighting through it, and have had plenty of success n
Hi
I'm constructing a BooleanQuery with an optional filter query and a
mandatory content query, plus some optional boost queries.
In effect, what I am doing is implementing this shorthand:
BooleanQuery.Builder qb = new BooleanQuery.Builder();
if (filter) {
qb.add(filterquery, Occur.
Hi Trevor
Well, you may negate it via
qb.add(product_c_positive, Occur.MUST_NOT);
it will work only if there is a sibling MUST/SHOULD clause.
Regarding
qb.add(BooleanQuery.Builder().add(product_c_positive,
Occur.MUST_NOT).build(), Occur.FILTER);
It may hardly work unless Lucene "adjusts pure neg