NIHVIVO-2770 NIHVIVO 2428 made changes while working on individual removal from solr index.

This commit is contained in:
anupsawant 2011-07-07 22:39:05 +00:00
parent e07ed707a1
commit 3d37d30bf9

View file

@ -123,7 +123,7 @@ public class SolrIndexer implements IndexerIface {
public void removeFromIndex(String uri) throws IndexingException {
if( uri != null ){
try {
server.deleteByQuery( individualToSolrDoc.getQueryForId(uri));
server.deleteById(individualToSolrDoc.getIdForUri(uri));
log.debug("deleted " + " " + uri);
} catch (SolrServerException e) {
log.error( "could not delete individual " + uri, e);