Why can't I find some customer accounts in search on Shopify?

I’m also having the same issue with the API. When searching for a customer by email, it sometimes doesn’t return any results, however when attempting to then create the customer, I get and “Email has already been taken” error. The customer exists, the search is just not returning any results. Is there any fix to this?