Commit 46c6cc15 authored by Ubbo Veentjer's avatar Ubbo Veentjer
Browse files

configurable tgsearch url

parent 4df0a6e0
......@@ -13,6 +13,8 @@ public class TgrepConfigurationService {
@Value("${textgrid.host}")
private String textgridHost;
@Value("${tgsearch.url}")
private String tgsearchUrl;
@Value("${handle.host}")
private String handleHost;
@Value("${tool.voyant.host}")
......@@ -35,6 +37,13 @@ public class TgrepConfigurationService {
this.textgridHost = textgridHost;
}
public String getTgsearchUrl() {
return tgsearchUrl;
}
public void setTgsearchUrl(String tgsearchUrl) {
this.tgsearchUrl = tgsearchUrl;
}
public String getHandleHost() {
return handleHost;
}
......@@ -92,6 +101,7 @@ public class TgrepConfigurationService {
@PostConstruct
public void postConstruct() {
log.info("textgrid host: " + textgridHost);
log.info("tgsearch url : " + tgsearchUrl);
log.info("handle host: " + handleHost);
log.info("voyant host: " + voyantHost);
log.info("annotate host: " + toolAnnotateHost);
......
......@@ -41,7 +41,7 @@ public class TgsearchClientService {
private void setupClient() {
log.info("setting up tgsearch client for host: " + tgrepConfig.getTextgridHost());
// Create Searchclient with GZIP compression enabled
searchClient = new SearchClient(tgrepConfig.getTextgridHost() + "/1.0/tgsearch-public")
searchClient = new SearchClient(tgrepConfig.getTgsearchUrl())
.enableGzipCompression();
}
......
......@@ -8,6 +8,7 @@ server.servlet.session.cookie.secure: ${tgrep.ssl}
# textgrid defaults
textgrid.host: https://textgridlab.org
tgsearch.url: ${textgrid.host}/1.0/tgsearch-public
handle.host: https://hdl.handle.net
# tool defaults
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment