Skip to content

Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance

Change warc importer to use defaultsurrogate-crawl profile, as reported by LA_FORGE http://forum.yacy-websuche.de/viewtopic.php?f=5&t=5990 and analysed by @luccioman (see comment https://github.com/yacy/yacy_search_server/commit/510f11d3745e14841420781376b733fd248d51f3) it creates conflict using a other crawlprofile without setting originator.

reger039162fbf0ec
diff --git a/source/net/yacy/document/importer/WarcImporter.java b/source/net/yacy/document/importer/WarcImporter.java
index 5ad4582b3..3022ea7c4 100644
--- a/source/net/yacy/document/importer/WarcImporter.java
+++ b/source/net/yacy/document/importer/WarcImporter.java
@@ -150,15 +150,15 @@ public class WarcImporter extends Thread implements Importer {
requestHeader.referer() == null ? null : requestHeader.referer().hash(),
"warc",
responseHeader.lastModified(),
- Switchboard.getSwitchboard().crawler.defaultRemoteProfile.handle(), // use remote profile (to index text & media, without writing to cache
+ Switchboard.getSwitchboard().crawler.defaultSurrogateProfile.handle(),
0,
- Switchboard.getSwitchboard().crawler.defaultRemoteProfile.timezoneOffset());
+ Switchboard.getSwitchboard().crawler.defaultSurrogateProfile.timezoneOffset());
final Response response = new Response(
request,
requestHeader,
responseHeader,
- Switchboard.getSwitchboard().crawler.defaultRemoteProfile,
+ Switchboard.getSwitchboard().crawler.defaultSurrogateProfile,
false,
content
);