Revision 58511
Added by Alessia Bardi almost 4 years ago
CloudIndexClient.java | ||
---|---|---|
122 | 122 |
} |
123 | 123 |
|
124 | 124 |
public int remove(final String id, final boolean commit) throws CloudIndexClientException { |
125 |
String q = String.format("objidentifier:\"%s\" OR resultdupid:\"%s\"", id, id); |
|
125 | 126 |
try { |
126 |
final UpdateResponse res = solrClient.deleteByQuery("objidentifier:\"" + id + "\"");
|
|
127 |
final UpdateResponse res = solrClient.deleteByQuery(q);
|
|
127 | 128 |
if (commit) { |
128 | 129 |
solrClient.commit(); |
129 | 130 |
} |
Also available in: Unified diff
Fixes #5544: delete a record and its representative, if there is one