Selecting first records returned (based on maxRecord), and fixing the search record handler to hit the right endpoint