The setMaxTime() method sets the maximum time for a search.
Note: In general, the default value should not be changed.
setMaxTime( maxTime )
|
maxTime |
Integer |
Maximum search time, in seconds. Default = 0, no constraint. |
Undefined
var context = this.getContext();var search = context.get("search");
search.setMaxTime(31337);
context.set('search', search);
return context;