LUCENE-10477: mention 'call multiple times' in Query.rewrite javadoc (#758)

This commit is contained in:
Christine Poerschke 2022-03-22 15:39:59 +00:00 committed by GitHub
parent 04127ed9fc
commit 779c332a8c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 0 deletions

View File

@ -73,6 +73,11 @@ public abstract class Query {
/**
* Expert: called to re-write queries into primitive queries. For example, a PrefixQuery will be
* rewritten into a BooleanQuery that consists of TermQuerys.
*
* <p>Callers are expected to call <code>rewrite</code> multiple times if necessary, until the
* rewritten query is the same as the original query.
*
* @see IndexSearcher#rewrite(Query)
*/
public Query rewrite(IndexReader reader) throws IOException {
return this;