Customer Search By Custom Field

I experienced a similar issue and found a solution. I have included a link below for reference.