code: function makeDefaultSearch(agent, category) {
      let search = function (text, strict = false) {
          return agent.request('get_search', {
              query: { 'categories': [category], 'search': text, 'strict': strict }
          })
              .then(result => {
              return (result[category]);
          });
      };
      let searchFunc = search;
      searchFunc.strict = function (text) {
          return search(text, true);
      };
      return searchFunc;
  }
docs: Create a new {@link Search} instance that makes request with `agent`,
  searches within the given category and uses the default search space.
  
  @param agent The agent to execute HTTP requests with
  @param category The search category results are limited to
  @returns A Search instance that can be used to run search queries