diff --git a/lucene/join/src/java/org/apache/lucene/search/join/ToChildBlockJoinQuery.java b/lucene/join/src/java/org/apache/lucene/search/join/ToChildBlockJoinQuery.java index fd1ec0d66a3..ffb114d0e00 100644 --- a/lucene/join/src/java/org/apache/lucene/search/join/ToChildBlockJoinQuery.java +++ b/lucene/join/src/java/org/apache/lucene/search/join/ToChildBlockJoinQuery.java @@ -46,7 +46,10 @@ import org.apache.lucene.util.FixedBitSet; public class ToChildBlockJoinQuery extends Query { - public static final String INVALID_QUERY_MESSAGE = "Parent query yields document which is not matched by parents filter, docID="; + /** Message thrown from {@link + * ToChildBlockJoinScorer#validateParentDoc} on mis-use, + * when the parent query incorrectly returns child docs. */ + static final String INVALID_QUERY_MESSAGE = "Parent query yields document which is not matched by parents filter, docID="; private final Filter parentsFilter; private final Query parentQuery;