code: public MongoQuery like(int type, String key, String value) {
  
          if (type == 1) {
              Pattern pattern = Pattern.compile("^" + value + ".*$", Pattern.CASE_INSENSITIVE);
              query.add(Filters.regex(key, pattern));
          } else {
              Pattern pattern = Pattern.compile("^.*" + value + "$", Pattern.CASE_INSENSITIVE);
              query.add(Filters.regex(key, pattern));
          }
          return this;
      }
docs: 1为以什么开头,2为以什么结尾