With the exception of child pornography, you haven't committed a crime by searching for illegal content until you actually engage in any illegal activity. As a rule of thumb, if something feels illegal, it could be in your best interest to not search for it online.