When you are creating code for searching, you must include the following information in your search code:
•One of three ResourceService.search() methods to execute the search.
oA method that uses the search view key to return the results of a search view.
oA method that uses filter criteria to return search results.
oA method that uses filter criteria and search parameters to return search results.
•Methods part of the search classes to enter search criteria and parameters.
•The resource service class and concrete objects to specify the objects you are searching. For example, if you are searching for accounts, access AccountService so that you can use Account methods as part of the search.
When you include all this information, you can execute the search.