Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance
Java decentralizedintranet-searchintranet-search-enginep2pp2p-networkprivacyprivacy-protectionsearch-enginesearchenginewebweb-search-enginewebsearchwebseearch-engine
concurrency bugfix
orbiter927aaa95a643
diff --git a/source/net/yacy/search/schema/CollectionConfiguration.java b/source/net/yacy/search/schema/CollectionConfiguration.javaindex 178ca8005..898179b7a 100644--- a/source/net/yacy/search/schema/CollectionConfiguration.java+++ b/source/net/yacy/search/schema/CollectionConfiguration.java@@ -96,6 +96,7 @@ import org.apache.solr.common.SolrDocument;import org.apache.solr.common.SolrDocumentList;import org.apache.solr.common.SolrException;import org.apache.solr.common.SolrInputDocument;+import org.eclipse.jetty.util.ConcurrentHashSet;public class CollectionConfiguration extends SchemaConfiguration implements Serializable {@@ -1228,7 +1229,7 @@ public class CollectionConfiguration extends SchemaConfiguration implements Seri// process all documents in collectionfinal Map<String, Long> hostExtentCache = new HashMap<String, Long>(); // a mapping from the host id to the number of documents which contain this host-id- final Set<String> uniqueURLs = new HashSet<String>();+ final Set<String> uniqueURLs = new ConcurrentHashSet<String>(); // will be used in a concurrent environmenttry {final Set<String> omitFields = new HashSet<String>();omitFields.add(CollectionSchema.process_sxt.getSolrFieldName());