code: @Override
      public Query doQuery(SingleColumnMapper<?> mapper, Analyzer analyzer) {
          if (mapper.base == String.class) {
              Term term = new Term(field, value);
              return new PrefixQuery(term);
          } else {
              throw new IndexException("Prefix queries are not supported by mapper '{}'", mapper);
          }
      }
docs: {@inheritDoc}