substring and "words" searches, improve the formatting of generated SQL, and use real subselects instead of performing the subselect and using its results in an IN. r=mkanat, a=mkanat (module owner) git-svn-id: svn://10.0.0.236/trunk@260807 18797224-902f-48f8-a5cc-f745e15eee43