mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-07 10:04:21 +00:00
Merge pull request #14 from Georgetown-University-Libraries/ds3602m1
Add string "-unmigrated" to ids that cannot be mapped
This commit is contained in:
@@ -81,14 +81,6 @@ public class SolrUpgradePre6xStatistics
|
||||
private static final String INDEX_DEFAULT = "statistics";
|
||||
private static final String MIGQUERY = "(id:* AND -(id:*-*)) OR (scopeId:* AND -(scopeId:*-*)) OR (epersonid:* AND -(epersonid:*-*))";
|
||||
|
||||
/*
|
||||
private static final String MIGQUERYARR[] = {
|
||||
"id:* AND -(id:*-*)",
|
||||
"scopeId:* AND -(scopeId:*-*)",
|
||||
"epersonid:* AND -(epersonid:*-*)"
|
||||
};
|
||||
*/
|
||||
|
||||
//Counters to determine the number of items to process
|
||||
private int numRec = NUMREC_DEFAULT;
|
||||
private int batchSize = BATCH_DEFAULT;
|
||||
@@ -545,6 +537,8 @@ public class SolrUpgradePre6xStatistics
|
||||
}
|
||||
if (uuid != null) {
|
||||
newvals.add(uuid.toString());
|
||||
} else {
|
||||
newvals.add(oval+"-unmigrated");
|
||||
}
|
||||
} catch (NumberFormatException e) {
|
||||
log.warn("Non numeric legacy id "+ col.name() +":" + oval.toString());
|
||||
@@ -555,7 +549,6 @@ public class SolrUpgradePre6xStatistics
|
||||
for(String nv: newvals) {
|
||||
input.addField(col.name(), nv);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user