1
0
mirror of https://github.com/yacy/yacy_search_server.git synced 2025-07-22 09:14:38 -04:00

catch IllegalArgumentException for wrong process types (that is needed

for migrations when new process types are introduced or disappear)
This commit is contained in:
orbiter
2014-04-22 23:14:05 +02:00
parent 4ee4ba1576
commit ccb1864d55

@ -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();