client/splunk.js
function(params, querySuffix, callback) {
            var query = "| datamodel " + this.dataModel.name + " " + this.name + " search";
            // Prepend a space to the querySuffix, or set it to an empty string if null or undefined
            querySuffix = (querySuffix) ? (" " + querySuffix) : ("");
            this.dataModel.service.search(query + querySuffix, params, callback);
        }
function(params, querySuffix, callback) {
            var query = "| datamodel " + this.dataModel.name + " " + this.name + " search";
            // Prepend a space to the querySuffix, or set it to an empty string if null or undefined
            querySuffix = (querySuffix) ? (" " + querySuffix) : ("");
            this.dataModel.service.search(query + querySuffix, params, callback);
        }
function ( params , querySuffix , callback ) { var query = "| datamodel " + this . dataModel . name + " " + this . name + " search" ; // Prepend a space to the querySuffix, or set it to an empty string if null or undefined querySuffix = ( querySuffix ) ? ( " " + querySuffix ) : ( "" ) ; this . dataModel . service . search ( query + querySuffix , params , callback ) ; }
Start a search job that applies querySuffix to all the events in this data model object.

@example

service.dataModels().fetch(function(err, dataModels) {
var object = dataModels.item("internal_audit_logs").objectByName("searches");
object.startSearch({}, "| head 5", function(err, job) {
console.log("The job has name:", job.name);
});
});

@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.
**Note:** This method throws an error if the `exec_mode=oneshot` parameter is passed in with the properties dictionary.
@param {String} querySuffix A search query, starting with a '|' that will be appended to the command to fetch the contents of this data model object (e.g., "| head 3").
@param {Function} callback A function to call with the search job: `(err, job)`.

@method splunkjs.Service.DataModelObject
Start a search job that applies querySuffix to all the events in this data model object .