code: function(query, params, callback) {
              // If someone called us with the default style of (params, callback),
              // lets make it work
              if (utils.isObject(query) && utils.isFunction(params) && !callback) {
                  callback = params;
                  params = query;
                  query = params.search;
              }
              
              callback = callback || function() {};
              params = params || {};
              params.search = query; 
              
              if ((params.exec_mode || "").toLowerCase() === "oneshot") {
                  throw new Error("Please use splunkjs.Service.Jobs.oneshotSearch for exec_mode=oneshot");
              }
              
              if (!params.search) {
                  callback("Must provide a query to create a search job");
                  return;
              } 
              var that = this;
              return this.post("", params, function(err, response) {
                  if (err) {
                      callback(err);
                  }
                  else {
                      var job = new root.Job(that.service, response.data.sid, that.namespace);
                      callback(null, job);
                  }
              });
          }
docs: Creates a search job with a given search query and optional parameters, including `exec_mode` to specify the type of search:
  
  - Use `exec_mode=normal` to return a search job ID immediately (default).
  Poll for completion to find out when you can retrieve search results.
  
  - Use `exec_mode=blocking` to return the search job ID when the search has finished.
  
  To run a oneshot search, which does not create a job but rather returns the search results, use `Service.Jobs.oneshotSearch`.
  
  @param {String} query The search query.
  @param {Object} params A dictionary of properties for the search job. For a list of available parameters, see <a href="http://dev.splunk.com/view/SP-CAAAEFA#searchjobparams" target="_blank">Search job parameters</a> on Splunk Developer Portal.
  @param {Function} callback A function to call with the created job: `(err, createdJob)`.
  
  @endpoint search/jobs
  @method splunkjs.Service.Jobs