The following are static methods for Search.
public static Search.SearchResults find(String searchQuery)
Type: Search.SearchResults
Use this method wherever a static SOSL query can be used, such as in regular assignment statements and for loops.
public static sObject[sObject[]] query(String query)
This method can be used wherever a static SOSL query can be used, such as in regular assignment statements and for loops.
For more information, see Dynamic SOSL.
public static Search.SuggestionResults suggest(String searchQuery, String sObjectType, Search.SuggestionOption suggestions)
Type: SuggestionResults
If the user’s search query contains quotation marks or wildcards, those symbols are automatically removed from the query string in the URI.