As mentioned in Salesforce doc that it can return 2000 records but what about scanning 500K records.

Is there any limit on records that will be scanned.

1 Answer 1


SOSL doesn't scan anything. It leverages the system's indexes to find results. It doesn't matter if there are five records or five hundred million records, it will return the first set of most relevant records. Records not yet indexed (usually within a few seconds to minutes of creation) will not be scanned or searchable.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .