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
|
@Override
|
||||||
public void removeFromIndex(String uri) throws IndexingException {
|
public void removeFromIndex(String uri) throws IndexingException {
|
||||||
if( uri != null ){
|
if( uri != null ){
|
||||||
try {
|
try {
|
||||||
server.deleteByQuery( individualToSolrDoc.getQueryForId(uri));
|
server.deleteById(individualToSolrDoc.getIdForUri(uri));
|
||||||
log.debug("deleted " + " " + uri);
|
log.debug("deleted " + " " + uri);
|
||||||
} catch (SolrServerException e) {
|
} catch (SolrServerException e) {
|
||||||
log.error( "could not delete individual " + uri, e);
|
log.error( "could not delete individual " + uri, e);
|
||||||
|
|
Loading…
Add table
Reference in a new issue