client/splunk.js
function(value, callback) {
            callback = callback || function() {};
            
            var that = this;
            var req = this.post("control", {action: "setpriority", priority: value}, function(err) {
                callback(err, that);
            });
            
            return req;
        }
function(value, callback) {
            callback = callback || function() {};
            
            var that = this;
            var req = this.post("control", {action: "setpriority", priority: value}, function(err) {
                callback(err, that);
            });
            
            return req;
        }
function ( value , callback ) { callback = callback || function ( ) { } ; var that = this ; var req = this . post ( "control" , { action : "setpriority" , priority : value } , function ( err ) { callback ( err , that ) ; } ) ; return req ; }
Sets the priority for this search job.

@example

var job = service.jobs().item("mysid");
job.setPriority(6, function(err, job) {
console.log("JOB PRIORITY SET");
});

@param {Number} value The priority (an integer between 1-10). A higher value means a higher priority.
@param {Function} callback A function to call with the search job: `(err, job)`.

@endpoint search/jobs/{search_id}/control
@method splunkjs.Service.Job
Sets the priority for this search job .