I know this isn't helpful, but can I ask why you want to do that? – DominicJun 23 '12 at 11:09
1
Sure @Dominic. Some spammers tend to enter short terms as "a" or "of". On a site with many inputs and hosting "very" shared, it takes time to return results or gives error. – Michael WilliamJun 23 '12 at 11:22
@Michael Stop words and word length are different topics. – toscho♦Jun 23 '12 at 15:31
@toscho Sure, however the central problem is how to influence the search to deal with these words, which brings it (in my personal opinion) basically back to one topic. – MichaelJun 23 '12 at 16:59
Hi @Vinicius Massuchetto ...('/news/', $s)) unfortunately it did not work. site.com/?s=news usually is returning results. – Michael WilliamJun 23 '12 at 13:19
I'm sorry. Try again with the new snippet. =D – Vinicius MassuchettoJun 23 '12 at 13:51
What a pity @Vinicius Massuchetto - Oops! Fatal error: Call to a member function set_404()... What should be happening? – Michael WilliamJun 23 '12 at 14:17
I can't believe! While pasting the new snippet I forgot the global $wp_query line. With that you should have your functionality running. – Vinicius MassuchettoJun 23 '12 at 14:26
Oh, yes @Massuchetto Vinicius, global $wp_query was missing. Thank again. – Michael WilliamJun 24 '12 at 5:02