set routing for a scan query