create get index_by_viewer_id for vehicle and vehicle_groups