import { Client } from "elasticsearch";
import * as HttpAmazonESConnector from "http-aws-es";

export function connectES(endpoint: string) {
  return new Client({
    host: endpoint,
    connectionClass: HttpAmazonESConnector,
  });
}
