diff --git a/source/net/yacy/search/AutoSearch.java b/source/net/yacy/search/AutoSearch.java index 7783b76e7..5e88f53c9 100644 --- a/source/net/yacy/search/AutoSearch.java +++ b/source/net/yacy/search/AutoSearch.java @@ -289,7 +289,7 @@ public class AutoSearch extends AbstractBusyThread { urls.add(new DigestURL(entry, (byte[]) null)); this.gotresults++; } - sb.addToIndex(urls, null, "AutoSearch", null, true); + sb.addToCrawler(urls, false); ConcurrentLog.info(AutoSearch.class.getName(), "added " + urls.size() + " results from " + seed.getName() + " to index for query=" + currentQuery); } catch (IOException ex) { ConcurrentLog.info(AutoSearch.class.getName(), "no answer from " + seed.getName()); diff --git a/source/net/yacy/search/Switchboard.java b/source/net/yacy/search/Switchboard.java index 43ba97188..d0167afe6 100644 --- a/source/net/yacy/search/Switchboard.java +++ b/source/net/yacy/search/Switchboard.java @@ -3292,6 +3292,8 @@ public final class Switchboard extends serverSwitch { /** * load the content of a URL, parse the content and add the content to the index This process is started * concurrently. The method returns immediately after the call. + * Loaded/indexed pages are added to the given SearchEvent. If this is not required prefer addToCrawler + * to spare concurrent processes, bandwidth and intransparent crawl/load activity * * @param url the url that shall be indexed * @param searchEvent (optional) a search event that shall get results from the indexed pages directly @@ -3328,7 +3330,7 @@ public final class Switchboard extends serverSwitch { continue; } requests.add(request); - } + } new Thread() { @Override