In Lightning Experience, search results depend on how field values are tokenized (broken into searchable terms) during indexing. Because of this, searching using certain substrings—especially from the end of a text value—may not return expected results.
For example, consider a Product record where the Product Code field contains:ABC-EFG-PQR-XYZ
Salesforce breaks this value into tokens such as:
Searching using any of these tokens returns expected results. However, substrings from the end of the value (for example, PQR-XYZ) are not indexed as tokens and therefore do not return results.
Additionally:
ABC-EFG) may work due to implicit wildcard behavior (for example, ABC-EFG*).*PQR-XYZ), which prevents matching substrings from the end of a value.Note:
This behavior may differ from Salesforce Classic, where similar searches can sometimes return results.
This is expected behavior based on how Salesforce search indexing and tokenization work in Lightning Experience.
To improve search results:
ABC, EFG, PQR, XYZ).How Search Breaks Up Information
005225668

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.