diff --git a/lucene/core/src/java/org/apache/lucene/search/Query.java b/lucene/core/src/java/org/apache/lucene/search/Query.java index c41caf251e5d..4f04728395d9 100644 --- a/lucene/core/src/java/org/apache/lucene/search/Query.java +++ b/lucene/core/src/java/org/apache/lucene/search/Query.java @@ -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. + * + *

Callers are expected to call rewrite 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;