docs: int toMatchDoc() throws IOException {
      while (true) {
        if (findMatches()) {
          return docID();
        }
        resetQueue();
        if (spans.nextDoc() == NO_MORE_DOCS) {
          return NO_MORE_DOCS;
        }
      }
    }