docs: public boolean advanceToDoc(int docId) throws IOException {
      if (ignoreSpans == null || currentDocId == Spans.NO_MORE_DOCS) {
        return false;
      } else if (currentDocId == docId) {
        return true;
      } else {
        baseEndPositionList.clear();
        fullEndPositionList.clear();
        maxBaseEndPosition.clear();
        minFullStartPosition.clear();
        if (currentDocId < docId) {
          currentDocId = ignoreSpans.advance(docId);
          currentPosition = -1;
          minimumPosition = -1;
        }
        return currentDocId == docId;
      }
    }