Skip to main content
Development

SOSL

SOSL (Salesforce Object Search Language) is a text-search language that queries multiple objects simultaneously using Salesforce's search index.

Term Context

Category

Development

10 terms in this category

Related Terms

3

connected concepts

Glossary

66

total definitions

SOSL Explained

Unlike SOQL, which queries a single object at a time (plus related objects through relationship fields), SOSL performs a full-text search across multiple objects in a single call. It returns a list of lists (one list per sObject type searched) and supports FIND clauses with wildcards, proximity operators, and logical operators (AND, OR, AND NOT). SOSL searches run against Salesforce's search index, which is updated asynchronously, so very recently created records may not appear immediately.

SOSL is ideal for global search scenarios, such as finding a contact name that might appear across Leads, Contacts, and custom objects. In Apex, SOSL queries count against a separate governor limit (20 per transaction) from SOQL. Developers frequently use SOSL in search pages, de-duplication utilities, and knowledge-base lookups where the target object is unknown ahead of time.

Getting Started

Ready to transform your Salesforce?

Join hundreds of teams using Clientell AI to automate workflows and boost productivity.

Unlimited messages  ·  No credit card required

SOC 2
HIPAA
GDPR
Salesforce Partner