Put query into the correct search field