Transform OpenSearch query to a valid GetRecords request (#245)