NIHVIVO-2770 NIHVIVO 2428 made changes while working on individual removal from solr index.
This commit is contained in:
parent
e07ed707a1
commit
3d37d30bf9
1 changed files with 2 additions and 2 deletions
|
@ -122,8 +122,8 @@ public class SolrIndexer implements IndexerIface {
|
|||
@Override
|
||||
public void removeFromIndex(String uri) throws IndexingException {
|
||||
if( uri != null ){
|
||||
try {
|
||||
server.deleteByQuery( individualToSolrDoc.getQueryForId(uri));
|
||||
try {
|
||||
server.deleteById(individualToSolrDoc.getIdForUri(uri));
|
||||
log.debug("deleted " + " " + uri);
|
||||
} catch (SolrServerException e) {
|
||||
log.error( "could not delete individual " + uri, e);
|
||||
|
|
Loading…
Add table
Reference in a new issue