Search warrants are narrowly scoped. If they find evidence of other law breaking while executing the warrant, it's inadmissible in court. (unless they witness these crimes taking place)
They're only allowed to go after the crimes that they are already aware of.
So for instance if the police have probable cause that a wanted criminal is at your house they can get a search warrant to search it for him. If while searching they see illegal drugs on your coffee table they can use that evidence under the plain view exception. However if they open up your schoolbag and find drugs they would not be able to use that as evidence because there is no way a person can fit inside your bag so searching it couldn't have been part of the search authorized by the warrant.