romseygeek commented on code in PR #15727:
URL: https://github.com/apache/lucene/pull/15727#discussion_r2839865467


##########
lucene/join/src/java/org/apache/lucene/search/join/ToParentDocValues.java:
##########
@@ -242,6 +296,23 @@ public int advance(int target) throws IOException {
     return nextDoc();
   }
 
+  /**
+   * Advance the iterator to exactly {@code targetParentDocID} and return 
whether it has a value
+   * derived from its child documents. {@code targetParentDocID} must be 
greater than or equal to
+   * the current {@link #docID() doc ID}. After this method returns, {@link 
#docID()} returns {@code
+   * targetParentDocID}.
+   *
+   * <p>A parent document is considered to have a value when at least one of 
its child documents has
+   * a value. When {@code skipParentsWithMissingChildValues} is {@code true}, 
the parent is

Review Comment:
   Reading this again, I'm not sure it's quite what we want?  We need to return 
a top-level missing value when a parent has *no* child documents with sort 
values, rather than when it has some missing ones.



-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to