+ Start a Discussion
DaneshDanesh 

Cannot search for newly created contact by email (SFDC and REST API) until 10 mins later

I create a contact with the the first name as Bobby and email 'bob@example.com'. If I then immediately search for this contact by email, it does not return anything. However, if I search by Bobby, it will show up immediately. I have to wait for 10 mins or so until SF has indexed the email, then searching by email works.

Note, this happens both on SFDC directly, and over the REST API when using SOSL. So if I create the contact on SFDC and run a global search in the top left with 'bob@example.com', it returns nothing.

This has only recently started happening though, since December-ish. It used to work fine before that. Is there some SF setting that I'm not aware of that handles this? I don't see anything relavent in the Setup > Customize settings.


Here's the SOSL query I run over the API:
FIND {bob@example.com} IN EMAIL_FIELDS RETURNING Contact(Id, Email)

This may not be the right place for this so please let me know if I should post this elsewhere.

 
Best Answer chosen by Danesh
Shaijan ThomasShaijan Thomas
Hi Danesh,
This post may help you
https://success.salesforce.com/answers?id=90630000000ghFuAAI

Shaijan