Application Framework Reference

Splunk API

clone()

The clone () method instantiates a search object identical to the current context search object.

Synopsis

search = clone()

Return Value

Object

Search object identical to the current context search object.

Example

var context = this.getContext();var search  = context.get("search");
var newSearch = this.newSearch.clone();