You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -62,6 +62,6 @@ Soql contactQuery = new Soql(Schema.Contact.SobjectType); // C
62
62
Soql leadQuery = new Soql(Schema.Lead.SobjectType); // Create an instance of Soql for the Lead object
63
63
List<Soql> queries = new List<Soql>{accountQuery, contactQuery, leadQuery}; // Add the Soql queries to a list
64
64
65
-
Sosl mySearch = new Sosl('my search term', queries); // Create a new Sosl instance with a search term & the list of Soql queries
66
-
List<List<Sobject>> searchResults = mySearch.getSearchResults(); // Sosl returns a list of lists of sobjects - getFirstSearchResults() returns the first list
65
+
Sosl mySearch = new Sosl('my search term', queries); // Create a new Sosl instance with a search term & the list of Soql queries
66
+
List<List<Sobject>> searchResults = mySearch.getSearchResults(); // Returns all search results
0 commit comments