Fixed the search issue. It looks like the issue was in the API request. The connection was freaking out. Recreating it for each request seems to fix the issue.