Thematic funds get highest net inflows at Rs 9,017 cr, followed by smallcaps at Rs 5,721 crore