Skip to content

Commit

Permalink
LUCENE-10477: mention 'call multiple times' in Query.rewrite javadoc (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
cpoerschke authored Mar 22, 2022
1 parent 04127ed commit 779c332
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lucene/core/src/java/org/apache/lucene/search/Query.java
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,11 @@ public Weight createWeight(IndexSearcher searcher, ScoreMode scoreMode, float bo
/**
* 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;
Expand Down

0 comments on commit 779c332

Please sign in to comment.