增加查询条件，限制查询结果对象指定最短的值，包含指定字符串。在数据量比较大的情况下会比较慢。

        :param key: 查询条件字段名
        :param value: 需要包含的字符串
        :rtype: Query
762426
def contains(self, key, value):
        
        self._add_condition(key, '$regex', self._quote(value))
        return self
515651
function (key) {
            var self = this, _queryMap;
            parseQuery(self);
            _queryMap = self._queryMap;
            if (key) {
                return _queryMap[key];
            } else {
                return _queryMap;
            }
        }
380623
def setValue(self, key, value):
        
        LOG.debug("HMGeneric.setValue: address = '%s', key = '%s' value = '%s'" % (self._ADDRESS, key, value))
        try:
            self._proxy.setValue(self._ADDRESS, key, value)
            return True
        except Exception as err:
            LOG.error("HMGeneric.setValue: %s on %s Exception: %s", key,
                      self._ADDRESS, err)
            return False
1326088
def add_query_param(query, key, value)
      query = query.to_s
      query << '&' unless query.empty?
      query << "#{::Faraday::Utils.escape key}=#{::Faraday::Utils.escape value}"
    end
137958
public Request data(String key, Object value) {
        this.data.put(key, value);
        return this;
    }
706817
def set_value_for_key(self, key, value):
        
        if key in self.options:
            self.options[key]['value'] = value
674308
def set(self, key, value):
        
        return self.__setitem__(key, value, force=True)
744685
def get(self, key):
        

        match = self._get_match(key=key)

        if not match:
            return None

        return self._get_value_from_match(key=key, match=match)
463729
public QueryParameters set(String key, Object value, Integer type) {
        return this.set(key, value, type, Direction.IN);
    }
267090
public Object set(String key, Object value) {
        int idx = keys.indexOf(key);
        if (idx == -1) {
            keys.add(key);
            values.add(value);
            return null;
        }
        return values.set(idx, value);
    }
873174
function (key, val) {
    if ( key.indexOf( '[]' ) !== -1 ) {
      key = key.replace( '[]', '' );

      if (isArray(this.queryParams[key])) {
        this.queryParams[key].push(val);
      }
      else {
        this.queryParams[key] = [val];
      }
    }
    else {
      this.queryParams[key] = val;
    }
  }
1060368
def set_(key, value, service=None, profile=None):  # pylint: disable=W0613
    '''
    
    '''
    return query(key, value, service, profile)
59511
function (key, value) {
            var self = this, _queryMap;
            parseQuery(self);
            _queryMap = self._queryMap;
            if (typeof key === 'string') {
                self._queryMap[key] = value;
            } else {
                if (key instanceof Query) {
                    key = key.get();
                }
                S.each(key, function (v, k) {
                    _queryMap[k] = v;
                });
            }
            return self;
        }
684913
def set_header(self, key: str, value: str) -> None:
        
        self.headers[key] = value
1141484
def eq_(self, value):
        ''' 
        '''
        if isinstance(value, QueryField):
            return self.__cached_id == value.__cached_id
        return QueryExpression({ self : self.get_type().wrap_value(value) })
232634
def key_on(self, value):
        
        if isinstance(value, BASESTRING):
            value = (value,)
        self._key_on = value
832076
def where(self, key, value):
        
        return self.filter(lambda item: data_get(item, key) == value)