When you search for a string of alphanumeric characters that you know is contained within a long string, you may notice that the expected record is not returned in the global search results.
This behavior is commonly observed when searching for IDs, JSON strings, or alphanumeric codes stored in custom long text fields. Salesforce's search engine breaks content into smaller indexed pieces called tokens. Very long unbroken strings — such as those containing continuous alphanumeric characters, special characters, and punctuation without spaces — may exceed the token limit, causing the full string to not be indexed correctly. As a result, searches using terms found within these strings may not return the expected records.
To efficiently store and find information, the Salesforce search engine breaks up record content into smaller pieces called tokens and stores them in the search index. Review How Does Search Break Up Information? for examples of tokens created and indexed from record data.
Some content — such as JSON formatted strings and long text strings — may contain long unbroken sequences of letters, numbers, special characters, and punctuation. There is a limit on how many tokens can be created from these types of strings. When this limit is reached, terms found within the string may not be returned in search results.
For long text strings that are not being returned in search, try adding white space before and after, or in place of, punctuation and special characters. This helps the search engine create more tokens from the string and improves search findability.
000384354

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.