Updated search API to allow searching all statuses (bug 852556)