Use a condition on the workflow action that does the search…this way the workflow action will not complete until the search is complete