Add search functionality with subscript operator