Skip to content

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

catch IllegalArgumentException for wrong process types (that is needed for migrations when new process types are introduced or disappear)

orbiterccb1864d55b2
diff --git a/source/net/yacy/search/schema/CollectionConfiguration.java b/source/net/yacy/search/schema/CollectionConfiguration.java
index 673f55ec1..c68d9a538 100644
--- a/source/net/yacy/search/schema/CollectionConfiguration.java
+++ b/source/net/yacy/search/schema/CollectionConfiguration.java
@@ -1172,7 +1172,7 @@ public class CollectionConfiguration extends SchemaConfiguration implements Seri
byte[] id = url.hash();
SolrInputDocument sid = collection.toSolrInputDocument(doc, omitFields);
- for (Object tag: proctags) {
+ for (Object tag: proctags) try {
// switch over tag types
ProcessType tagtype = ProcessType.valueOf((String) tag);
@@ -1194,7 +1194,7 @@ public class CollectionConfiguration extends SchemaConfiguration implements Seri
if (postprocessing_doublecontent(segment, uniqueURLs, sid, url)) proccount_uniquechange++;
}
- }
+ } catch (IllegalArgumentException e) {}
// refresh the link count; it's 'cheap' to do this here
String hosthash = url.hosthash();