Project

General

Profile

« Previous | Next » 

Revision 8647

recursively submit obsoleted objects for indexing when instructed. https://projects.ecoinformatics.org/ecoinfo/issues/6424

View differences:

D1NodeService.java
428 428
    	// lock and unlock of the pid happens in the subclass
429 429
    	HazelcastService.getInstance().getSystemMetadataMap().put(sysmeta.getIdentifier(), sysmeta);
430 430
    	// submit for indexing
431
        MetacatSolrIndex.getInstance().submit(sysmeta.getIdentifier(), sysmeta, null);
431
        MetacatSolrIndex.getInstance().submit(sysmeta.getIdentifier(), sysmeta, null, true);
432 432
        
433 433
    } catch (Exception e) {
434 434
    	logMetacat.error("Problem creating system metadata: " + pid.getValue(), e);
......
1322 1322
        // note: the calling subclass handles the map hazelcast lock/unlock
1323 1323
      	HazelcastService.getInstance().getSystemMetadataMap().put(sysmeta.getIdentifier(), sysmeta);
1324 1324
      	// submit for indexing
1325
        MetacatSolrIndex.getInstance().submit(sysmeta.getIdentifier(), sysmeta, null);
1325
        MetacatSolrIndex.getInstance().submit(sysmeta.getIdentifier(), sysmeta, null, true);
1326 1326
      } catch (Exception e) {
1327 1327
          throw new ServiceFailure("1190", e.getMessage());
1328 1328
          
......
1343 1343
            HazelcastService.getInstance().getSystemMetadataMap().lock(sysMeta.getIdentifier());
1344 1344
            HazelcastService.getInstance().getSystemMetadataMap().put(sysMeta.getIdentifier(), sysMeta);
1345 1345
            // submit for indexing
1346
            MetacatSolrIndex.getInstance().submit(sysMeta.getIdentifier(), sysMeta, null);
1346
            MetacatSolrIndex.getInstance().submit(sysMeta.getIdentifier(), sysMeta, null, true);
1347 1347
        } catch (Exception e) {
1348 1348
            throw new ServiceFailure("4862", e.getMessage());
1349 1349

  

Also available in: Unified diff