jpountz commented on issue #14425: URL: https://github.com/apache/lucene/issues/14425#issuecomment-2769408354
The builder approach should work. Or maybe a static helper like `public static Query newIndexOrDocValuesSetQuery(RewriteMethod indexRewriteMethod, String field, Collection<BytesRef> terms)` that could take advantage of the private constructor since this is only a problem for creating an `IndexOrDocValuesQuery`. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org For additional commands, e-mail: issues-h...@lucene.apache.org