function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Ben.SchauerhamerBen.Schauerhamer 

Trying to use a wildcard in SOSL with 2 characters.

I have a similar query to:
FIND {O\-*} IN ALL FIELDS RETURNING Opportunity(AccountId WHERE Sales_Credit__c='a1mG0000004VU...'  ORDER BY LastModifiedDate DESC NULLS LAST).



I am having a hard time with a SOSLIf I run that query I get no results. If I change it to below I get 2 results.
 
FIND {O\-89*} IN ALL FIELDS RETURNING Opportunity(AccountId WHERE Sales_Credit__c='a1mG0000004VU...'  ORDER BY LastModifiedDate DESC NULLS LAST).

If I remove the WHERE clause with just FIND {O\-*} it returns all of the results.
 
FIND {O\-89*} IN ALL FIELDS RETURNING Opportunity(AccountId ORDER BY LastModifiedDate DESC NULLS LAST).
I can succesfully run the query on our full sandbox. Any help will be greatly appreciated.