gsmiller commented on code in PR #995: URL: https://github.com/apache/lucene/pull/995#discussion_r910344898
########## lucene/core/src/java/org/apache/lucene/search/SortedSetSelector.java: ########## @@ -226,12 +226,14 @@ public int lookupTerm(BytesRef key) throws IOException { private void setOrd() throws IOException { if (docID() != NO_MORE_DOCS) { - while (true) { - long nextOrd = in.nextOrd(); - if (nextOrd == NO_MORE_ORDS) { - break; + int docValueCount = in.docValueCount(); + if (docValueCount == 0) { Review Comment: Ah right. Thanks! Addressed this in all four places. -- 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: issues-unsubscr...@lucene.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org For additional commands, e-mail: issues-h...@lucene.apache.org