Do not create a search object from a straight through query
Fixes T197