In US law, at least, there is a large distinction between public school administrators searching a particular student and large-scale searching of students, even if the search only pertains to publicly available information. You can see the issues more clearly if you think about the history of freedom of speech cases vs. public schools, especially those pertaining to freedom to practice religion.