Re: Update TermInSetQuery Example?

2023-10-21 Thread Michael Wechner
Hi Uwe Thanks for the hints re the other source code samples, will do this and will create a PR. Thanks Michael Am 21.10.23 um 09:52 schrieb Uwe Schindler: Hi Michael, Go ahead. Maybe scan through the remaining source files with a grep/regex: $ fgrep -R 'new BooleanQuery(' *

Re: Update TermInSetQuery Example?

2023-10-21 Thread Uwe Schindler
Hi Michael, Go ahead. Maybe scan through the remaining source files with a grep/regex: $ fgrep -R 'new BooleanQuery(' * lucene/core/src/java/org/apache/lucene/search/BooleanQuery.java: return new BooleanQuery(minimumNumberShouldMatch, clauses.toArray(new BooleanClause[0]));

Update TermInSetQuery Example?

2023-10-20 Thread Michael Wechner
Hi I recently found TermInSetQuery example at https://lucene.apache.org/core/9_7_0/core/org/apache/lucene/search/TermInSetQuery.html but if I understand correctly one should use now BooleanQuery.Builder instead BooleanQuery itself, right? BooleanQuery.Builder bqb = new