Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package edu.harvard.iq.dataverse.search;

import static edu.harvard.iq.dataverse.settings.SettingsServiceBean.Key.SolrHostColonPort;
import static edu.harvard.iq.dataverse.settings.SettingsServiceBean.Key.SolrMainIndexCollectionName;

import java.io.IOException;

Expand All @@ -25,7 +26,8 @@ public class SolrClientFactory {

@Produces
public SolrClient produceSolrClient() throws IOException {
return createClient("collection1");
return createClient(this.settings.getValueForKey(SolrMainIndexCollectionName,
"collection1"));
}

@Produces
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,9 @@ public enum Key {
* Solr hostname and port, such as "localhost:8983".
*/
SolrHostColonPort,

SolrMainIndexCollectionName,

/**
* Enable full-text indexing in solr
* Defaults to false
Expand Down
Loading