In order for a student to be able to search content, it must be:
In a course that the student is enrolled in.
Linked to from somewhere in the course or course menus.
Published.
Not restricted to access because of date based assignment or module release restrictions.
Not restricted to access because of module item prerequisite requirements.