Skip to content
Snippets Groups Projects
Commit 7916e7dd authored by Vibhuti Sharma [Microsoft]'s avatar Vibhuti Sharma [Microsoft]
Browse files

debug

parent 4ace9795
No related branches found
No related tags found
1 merge request!271Handle path prefix in elasticsearch url
Pipeline #90198 failed
...@@ -423,7 +423,7 @@ public class ElasticUtils { ...@@ -423,7 +423,7 @@ public class ElasticUtils {
url = url.trim().replaceAll("^(?i)(https?)://",""); url = url.trim().replaceAll("^(?i)(https?)://","");
URI uri = new URI(scheme + "://" + url); URI uri = new URI(scheme + "://" + url);
log.info(String.format("host:%s, port:%s, scheme:%s", uri.getHost(), port, uri.getScheme())); log.info(String.format("url:%s, port:%s, scheme:%s", url, port, uri.getScheme()));
RestClientBuilder builder = RestClient.builder(new HttpHost(uri.getHost(), port, uri.getScheme())); RestClientBuilder builder = RestClient.builder(new HttpHost(uri.getHost(), port, uri.getScheme()));
builder.setPathPrefix(uri.getPath()); builder.setPathPrefix(uri.getPath());
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment