Loading

Global Search results incomplete when you search text from a long string

Publiseringsdato: Jul 7, 2026
Beskrivelse

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.

Løsning

Why Long Strings Are Not Indexed Correctly

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.

Workaround

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.

Knowledge-artikkelnummer

000384354

 
Laster
Salesforce Help | Article