Search gives results only when logged in and does not return anything for theanonymous users.Anonymous users can access the whole site fine.
The problem is that the search results page inherits from a class that requiresusers to be authenticated. You'll need to create a custom Search results pagethat doesn't inherit from LayoutsPageBase for anonymous users to be able toaccess the search results. You can either remove the inheritance statement(which means it will inherit from a standard ASPX page) or create your own pageclass based on UnsecuredLayoutsPageBase (which is the class LayoutsPageBaseinherits from). Point your site at that results page and search will workagain.