|
|
@ -93,9 +93,9 @@ import net.yacy.cora.protocol.ResponseHeader;
|
|
|
|
import net.yacy.cora.protocol.TimeoutRequest;
|
|
|
|
import net.yacy.cora.protocol.TimeoutRequest;
|
|
|
|
import net.yacy.cora.protocol.http.HTTPClient;
|
|
|
|
import net.yacy.cora.protocol.http.HTTPClient;
|
|
|
|
import net.yacy.cora.protocol.http.ProxySettings;
|
|
|
|
import net.yacy.cora.protocol.http.ProxySettings;
|
|
|
|
import net.yacy.cora.services.federated.solr.SolrDoc;
|
|
|
|
|
|
|
|
import net.yacy.cora.services.federated.solr.ShardSolrConnector;
|
|
|
|
|
|
|
|
import net.yacy.cora.services.federated.solr.ShardSelection;
|
|
|
|
import net.yacy.cora.services.federated.solr.ShardSelection;
|
|
|
|
|
|
|
|
import net.yacy.cora.services.federated.solr.ShardSolrConnector;
|
|
|
|
|
|
|
|
import net.yacy.cora.services.federated.solr.SolrDoc;
|
|
|
|
import net.yacy.cora.services.federated.yacy.CacheStrategy;
|
|
|
|
import net.yacy.cora.services.federated.yacy.CacheStrategy;
|
|
|
|
import net.yacy.document.Condenser;
|
|
|
|
import net.yacy.document.Condenser;
|
|
|
|
import net.yacy.document.Document;
|
|
|
|
import net.yacy.document.Document;
|
|
|
@ -151,6 +151,9 @@ import net.yacy.search.query.SearchEvent;
|
|
|
|
import net.yacy.search.query.SearchEventCache;
|
|
|
|
import net.yacy.search.query.SearchEventCache;
|
|
|
|
import net.yacy.search.ranking.BlockRank;
|
|
|
|
import net.yacy.search.ranking.BlockRank;
|
|
|
|
import net.yacy.search.ranking.RankingProfile;
|
|
|
|
import net.yacy.search.ranking.RankingProfile;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import com.google.common.io.Files;
|
|
|
|
|
|
|
|
|
|
|
|
import de.anomic.crawler.Cache;
|
|
|
|
import de.anomic.crawler.Cache;
|
|
|
|
import de.anomic.crawler.CrawlProfile;
|
|
|
|
import de.anomic.crawler.CrawlProfile;
|
|
|
|
import de.anomic.crawler.CrawlQueues;
|
|
|
|
import de.anomic.crawler.CrawlQueues;
|
|
|
@ -392,7 +395,7 @@ public final class Switchboard extends serverSwitch
|
|
|
|
getConfig("federated.service.solr.indexing.schemefile", "solr.keys.default.list");
|
|
|
|
getConfig("federated.service.solr.indexing.schemefile", "solr.keys.default.list");
|
|
|
|
final File solrWorkProfile = new File(getDataPath(), "DATA/SETTINGS/" + schemename);
|
|
|
|
final File solrWorkProfile = new File(getDataPath(), "DATA/SETTINGS/" + schemename);
|
|
|
|
if ( !solrWorkProfile.exists() ) {
|
|
|
|
if ( !solrWorkProfile.exists() ) {
|
|
|
|
FileUtils.copy(solrBackupProfile, solrWorkProfile);
|
|
|
|
Files.copy(solrBackupProfile, solrWorkProfile);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
final SolrConfiguration backupScheme = new SolrConfiguration(solrBackupProfile);
|
|
|
|
final SolrConfiguration backupScheme = new SolrConfiguration(solrBackupProfile);
|
|
|
|
this.solrScheme = new SolrConfiguration(solrWorkProfile);
|
|
|
|
this.solrScheme = new SolrConfiguration(solrWorkProfile);
|
|
|
@ -731,7 +734,7 @@ public final class Switchboard extends serverSwitch
|
|
|
|
getDataPath(SwitchboardConstants.HTDOCS_PATH, SwitchboardConstants.HTDOCS_PATH_DEFAULT),
|
|
|
|
getDataPath(SwitchboardConstants.HTDOCS_PATH, SwitchboardConstants.HTDOCS_PATH_DEFAULT),
|
|
|
|
"notifier.gif");
|
|
|
|
"notifier.gif");
|
|
|
|
try {
|
|
|
|
try {
|
|
|
|
FileUtils.copy(notifierSource, notifierDest);
|
|
|
|
Files.copy(notifierSource, notifierDest);
|
|
|
|
} catch ( final IOException e ) {
|
|
|
|
} catch ( final IOException e ) {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|