Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance
Java decentralizedintranet-searchintranet-search-enginep2pp2p-networkprivacyprivacy-protectionsearch-enginesearchenginewebweb-search-enginewebsearchwebseearch-engine
increased runtime for postprocessing query job
Michael Peter Christen74ab5ef9fabb
diff --git a/source/net/yacy/search/schema/CollectionConfiguration.java b/source/net/yacy/search/schema/CollectionConfiguration.javaindex 66ca14b26..cd6f729bb 100644--- a/source/net/yacy/search/schema/CollectionConfiguration.java+++ b/source/net/yacy/search/schema/CollectionConfiguration.java@@ -994,7 +994,7 @@ public class CollectionConfiguration extends SchemaConfiguration implements Seri// To do so, we first must collect all canonical links, find all references to them, get the anchor list of the documents and patch the citation reference of these linksString patchquery = CollectionSchema.host_s.getSolrFieldName() + ":" + host + " AND " + CollectionSchema.canonical_s.getSolrFieldName() + AbstractSolrConnector.CATCHALL_DTERM;long patchquerycount = collectionConnector.getCountByQuery(patchquery);- BlockingQueue<SolrDocument> documents_with_canonical_tag = collectionConnector.concurrentDocumentsByQuery(patchquery, CollectionSchema.url_chars_i.getSolrFieldName() + " asc", 0, 10000000, 600000, 200, 1,+ BlockingQueue<SolrDocument> documents_with_canonical_tag = collectionConnector.concurrentDocumentsByQuery(patchquery, CollectionSchema.url_chars_i.getSolrFieldName() + " asc", 0, 100000000, 86400000, 200, 1,CollectionSchema.id.getSolrFieldName(), CollectionSchema.sku.getSolrFieldName(), CollectionSchema.canonical_s.getSolrFieldName());SolrDocument doc_B;int patchquerycountcheck = 0;@@ -1076,7 +1076,7 @@ public class CollectionConfiguration extends SchemaConfiguration implements Serifinal long count = segment.fulltext().getWebgraphConnector().getCountByQuery(query);int concurrency = Math.min((int) count, Math.max(1, Runtime.getRuntime().availableProcessors() / 4));ConcurrentLog.info("CollectionConfiguration", "collecting " + count + " documents from the webgraph, concurrency = " + concurrency);- final BlockingQueue<SolrDocument> docs = segment.fulltext().getWebgraphConnector().concurrentDocumentsByQuery(query, WebgraphSchema.source_chars_i.getSolrFieldName() + " asc", 0, 10000000, 1800000, 200, concurrency);+ final BlockingQueue<SolrDocument> docs = segment.fulltext().getWebgraphConnector().concurrentDocumentsByQuery(query, WebgraphSchema.source_chars_i.getSolrFieldName() + " asc", 0, 100000000, 86400000, 200, concurrency);final AtomicInteger proccount = new AtomicInteger(0);Thread[] t = new Thread[concurrency];for (final AtomicInteger i = new AtomicInteger(0); i.get() < t.length; i.incrementAndGet()) {@@ -1159,7 +1159,7 @@ public class CollectionConfiguration extends SchemaConfiguration implements Serilong count = collectionConnector.getCountByQuery(query);long start = System.currentTimeMillis();ConcurrentLog.info("CollectionConfiguration", "collecting " + count + " documents from the collection for harvestkey " + harvestkey);- BlockingQueue<SolrDocument> docs = collectionConnector.concurrentDocumentsByQuery(query, CollectionSchema.url_chars_i.getSolrFieldName() + " asc", 0, 10000000, 1800000, 200, 1);+ BlockingQueue<SolrDocument> docs = collectionConnector.concurrentDocumentsByQuery(query, CollectionSchema.url_chars_i.getSolrFieldName() + " asc", 0, 100000000, 86400000, 200, 1);int countcheck = 0;Collection<String> failids = new ArrayList<String>();SolrDocument doc;@@ -1278,7 +1278,7 @@ public class CollectionConfiguration extends SchemaConfiguration implements Serithis.crt = new ConcurrentHashMap<String, double[]>();try {// select all documents for each host- BlockingQueue<String> ids = connector.concurrentIDsByQuery("{!raw f=" + CollectionSchema.host_s.getSolrFieldName() + "}" + host, CollectionSchema.url_chars_i.getSolrFieldName() + " asc", 0, 10000000, 600000, 200, 1);+ BlockingQueue<String> ids = connector.concurrentIDsByQuery("{!raw f=" + CollectionSchema.host_s.getSolrFieldName() + "}" + host, CollectionSchema.url_chars_i.getSolrFieldName() + " asc", 0, 100000000, 86400000, 200, 1);String id;while ((id = ids.take()) != AbstractSolrConnector.POISON_ID) {this.crt.put(id, new double[]{0.0d,0.0d}); //{old value, new value}