4

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.

3

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.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.