code: protected boolean termCompare(Term term) {
          if (transform == TRANSFORM_NONE) {
              if (term.field() == field && term.text().startsWith(prefix)) {
                  input.setBase(term.text());
                  return pattern.reset().matches();
              }
              endEnum = true;
              return false;
          } else {
              // pre filtered, no need to check
              return true;
          }
      }
docs: {@inheritDoc}