I am attempting to search for records that contain some text and limit the search results to a group of Ids.
For simplicity, I'll remove the "search for text" part in this question.
The problematic query looks like this
FIND {* OR *} IN ALL FIELDS RETURNING Lead(Id, Name, Company Where Id IN ('someId')) , Contact(Id, Name, AccountId, Phone, MobilePhone, Email, MailingAddress Where Id IN('someId'))
In the sandbox, this query returns 0 rows no matter what if I enter a Lead's Id.. However if I split the SOSL into two parts with one for Lead and one for Contact, both can return records.
In the dev org however, the query works without a hitch even if I enter a Lead's ID.
Is there some sort of setting that I should be looking for or is this correct behavior?
I know that IDs are unique to each org, the IDs shown in the examples above were taken from the org that I was testing on, I am not using the same ID everywhere to test.