code: function(o) {
        if (_.isEmpty(o)) return '';
        if (!o.srsearch) return '';
        var srwhat = o.srwhat || 'text';
        if (_.indexOf(['text', 'nearmatch'], srwhat) < 0) 
          srwhat = 'text';
        var srnamespace = o.srnamespace || [0];
        var srlimit = o.srlimit || 10;
        srlimit = (srlimit > 50) ? 50 : (srlimit < 1 ? 1 : srlimit);
        return '&srsearch=' + encodeURIComponent(o.srsearch) + '&srwhat=' + srwhat 
          + '&srnamespace=' + srnamespace.join('|') + '&srlimit=' + srlimit;
      }
docs: *****************************Query: list****************************** /*
  Generate part of url to search using parameters in *o*
  
  Parameter *o*, required, defined as {
  srsearch, required, string, keyword to search,
  srwhat, optional, string, 3 available values:
  'title', search in title,
  'text', search in text,
  'nearmatch', search in title via exact matching,
  'title' by default
  srnamespace, optional, array of int, search under what namespaces,
  [0] by default
  srlimit, optinal, int, numbers of searching result, no more than 50,
  10 by default
  }
  
  Will generate api GET url for list=search, using following parameters:
  srsearch, required,
  srnamespace, ['0'] by default,
  srwhat, 'text' by default, [text|nearmatch] is allowed, 'title' is no
  longer supported, will fallback to 'text',
  srinfo, no use,
  srprop, no use,
  sroffset, no use,
  srlimit, no more than 50, 10 by default,
  srinterwiki, no use.
  }
  
  For more details, check https://www.mediawiki.org/wiki/API:Search
  
  Return query string used by list=search, e.g.,
  &srsearch=巴金斯&srwhat=text&srlimit=10