Loading tutorials
SELECT, WHERE, ORDER BY, LIMIT), read simple Apex, and run anonymous Apex in the Developer Console. It does not cover SOSL syntax yet. The goal is to decide which language fits a requirement before you write any query.5 min readFIND clause is written, how its search expression is parsed5 min readFIND ... RETURNING query, that you know the difference between SOSL and SOQL, and that you can run anonymous Apex in the Developer Console. Here you will learn how the IN clause limits which fields a SOSL search looks at, which groups exist, and which m6 min readFIND clause. It assumes you can already write a basic FIND ... RETURNING query, know the search groups (IN NAME FIELDS and so on), and can run anonymous Apex. Here you will learn how SOSL matches partial words, exact phrases, and 5 min readWHERE, ORDER BY, and LIMIT, and how to read the List<List<SObject>> result in Apex.6 min readList<List<SObject>> result. It also assumes you know how bind variables work in SOQL, using a colon before a variable name. SOSL uses the same syntax in a few more places. You will see where binds are allowed, what t5 min readSearch.query, which takes a SOSL string and runs it.4 min readList<List<SObject>> result. It covers three things that decide whether SOSL code works in production: the governor limits that cap it, the sharing rules that decide which records appear, and the fie5 min read@IsTest, Test.startTest(), and System.assertEquals. It also assumes you have read the earlier chapters on running SOSL in Apex, bind variables, and dynamic SOSL with Search.query.5 min readList<List<SObject>> results are laid out. None of these refinements are needed for a basic search. 5 min read