You need to sign in to do that
Don't have an account?
RongzhongHuang
SOSL - mismatched character ':' expecting '}'
Hi, if you search string contains ':', '-' within your SOSL statement, and use Search.query(), you would get exception like 'mismatched character' ...
I was wondering how many characters need to be escaped for SOSL statement. Is there a good way to handler these characters.
thanks,
I was wondering how many characters need to be escaped for SOSL statement. Is there a good way to handler these characters.
thanks,
The following characters are reserved:
? & | ! { } [ ] ( ) ^ ~ * : \ " ' + -
Reserved characters, if specified in a text search, must be escaped (preceded by the backslash \ character) in order to be properly interpreted.
To handle them is to escape them using "\"
reference: http://www.salesforce.com/us/developer/docs/soql_sosl/index_Left.htm