update searchFunctionApi