About Search Truncation Logic
When users enter long search strings in Max applications, some of the keywords at the end of the string are sometimes truncated and error messages appear. For example:
The search text you entered is too long and was therefore truncated during this search. These search results may exclude Jobs that match some of the keywords at the end of the search text. Shorten the search text and try again.
Search Truncate Logic Flow Example
"ST_B Resource 14""ST_B Resource 15""ST_B Resource 16""ST_B Resource 17""ST_B Resource 18""ST_B Resource 19"
This example text is parsed as six terms:
• "ST_B Resource 14"
• "ST_B Resource 15"
• "ST_B Resource 16"
• "ST_B Resource 17"
• "ST_B Resource 18"
• "ST_B Resource 19"
A search on this text for field1,field2 results in 12 clauses:
6 (terms) * 2 (search fields) = 12 clauses
If the query string doesn’t include double quotes, for example, case anyone comes across this, each word is treated as a single term. Also, when the clause count is calculated, duplicate fields and terms are removed.
The maximum clause count is 1014. If this limit is exceeded, an error message is generated.