Index specific pages programattically

Jun 3, 2015 at 2:35 PM
Is there a way to programmatically index specific pages. So, if I have http://www.mysite.com/products/?productid=123 or http://www.mysite.com/products/?productid=xyz, is there a way to programmatically index both pages, so that I can loop through and index each of these pages that have different content because of a different querystring paramter?
Thanks