diff --git a/main.go b/main.go index 1084f35..d2428a8 100644 --- a/main.go +++ b/main.go @@ -87,6 +87,10 @@ func parseArgs(searchRequest *pb.SearchRequest) *server.Args { args.EsHost = esHost } + if !strings.HasPrefix(args.EsHost, "http") { + args.EsHost = "http://" + args.EsHost + } + if esPort, ok := environment["ELASTIC_PORT"]; ok { args.EsPort = esPort }