Skip to content

Commit

Permalink
Newer solr seems to need the collection as part of the url #4158
Browse files Browse the repository at this point in the history
I am unsure if this is actually the correct approach but am committing it as this story is getting backlogged.
  • Loading branch information
matthew-a-dunlap committed Oct 25, 2017
1 parent 79043f7 commit 8fef67b
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public class AutoCompleteBean implements java.io.Serializable {

public SolrClient getSolrServer(){
if(solrServer == null){
String urlString = "http://" + systemConfig.getSolrHostColonPort() + "/solr";
String urlString = "http://" + systemConfig.getSolrHostColonPort() + "/solr/collection1";
solrServer = new HttpSolrClient.Builder(urlString).build();
}
return solrServer;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ public OAISet findById(Long id) {
private SolrClient getSolrServer () {
if (solrServer == null) {
}
String urlString = "http://" + systemConfig.getSolrHostColonPort() + "/solr";
String urlString = "http://" + systemConfig.getSolrHostColonPort() + "/solr/collection1";
solrServer = new HttpSolrClient.Builder(urlString).build();

return solrServer;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ public class IndexServiceBean {

@PostConstruct
public void init(){
String urlString = "http://" + systemConfig.getSolrHostColonPort() + "/solr";
String urlString = "http://" + systemConfig.getSolrHostColonPort() + "/solr/collection1";
solrServer = new HttpSolrClient.Builder(urlString).build();

rootDataverseName = findRootDataverseCached().getName();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ public class SearchServiceBean {

@PostConstruct
public void init(){
String urlString = "http://" + systemConfig.getSolrHostColonPort() + "/solr";
String urlString = "http://" + systemConfig.getSolrHostColonPort() + "/solr/collection1";
solrServer = new HttpSolrClient.Builder(urlString).build();
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ public class SolrIndexServiceBean {

@PostConstruct
public void init(){
String urlString = "http://" + systemConfig.getSolrHostColonPort() + "/solr";
String urlString = "http://" + systemConfig.getSolrHostColonPort() + "/solr/collection1";
solrServer = new HttpSolrClient.Builder(urlString).build();

}
Expand Down

0 comments on commit 8fef67b

Please sign in to comment.