Project

General

Profile

« Previous | Next » 

Revision 58511

Fixes #5544: delete a record and its representative, if there is one

View differences:

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