Freetime search in web using lotusscript

When using freetime search in Notes it works fine, but when using the same agent freetime search return error code 4000 which means could not found any items …Using same parameters (checked) in both

Subject: Freetime search in web using lotusscript

Error was in Server document. In Location section mail server was not the same server.When I fixed mail server field correctly then freetime search worked fine also in web.