Revision 46121
Added by Claudio Atzori about 7 years ago
FeedMissingClaimsJobNode.java | ||
---|---|---|
67 | 67 |
for (String record : queue) { |
68 | 68 |
final String id = reader.read(new StringReader(record)).valueOf("//*[local-name() = 'objIdentifier']"); |
69 | 69 |
if (idxClient.isRecordIndexed(id)) { |
70 |
toDeleteFromCache.add(id); |
|
71 |
} else { |
|
70 | 72 |
toFeed.add(idxClient.prepareSolrDocument(record, indexDsId, xslt)); |
71 |
} else { |
|
72 |
toDeleteFromCache.add(id); |
|
73 | 73 |
} |
74 | 74 |
} |
75 | 75 |
|
Also available in: Unified diff
inverted cases in businness logic