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: [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