Finds the search and returns its object or index in searches array.
getSearch(field, [returnIndex])
field string, field name of the search
returnIndex boolean, indicates if return a search or its index in searches array
Returns object, integer or null.

Description

The search is identified by the .field property, which is a required property for each search object. The method loops through the .searches array to find the search object.
If you have grid defined in the following way: You can get the search: