mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-15 05:53:08 +00:00
Remove obsolete references to deprecated DSIndexer class
This commit is contained in:
@@ -20,7 +20,6 @@ import org.dspace.eperson.factory.EPersonServiceFactory;
|
|||||||
import org.dspace.eperson.service.EPersonService;
|
import org.dspace.eperson.service.EPersonService;
|
||||||
import org.dspace.handle.factory.HandleServiceFactory;
|
import org.dspace.handle.factory.HandleServiceFactory;
|
||||||
import org.dspace.handle.service.HandleService;
|
import org.dspace.handle.service.HandleService;
|
||||||
import org.dspace.search.DSIndexer;
|
|
||||||
|
|
||||||
import java.io.File;
|
import java.io.File;
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
@@ -54,7 +53,6 @@ public class ItemImportCLITool {
|
|||||||
|
|
||||||
public static void main(String[] argv) throws Exception
|
public static void main(String[] argv) throws Exception
|
||||||
{
|
{
|
||||||
DSIndexer.setBatchProcessingMode(true);
|
|
||||||
Date startTime = new Date();
|
Date startTime = new Date();
|
||||||
int status = 0;
|
int status = 0;
|
||||||
|
|
||||||
@@ -408,7 +406,6 @@ public class ItemImportCLITool {
|
|||||||
System.out.println("***End of Test Run***");
|
System.out.println("***End of Test Run***");
|
||||||
}
|
}
|
||||||
} finally {
|
} finally {
|
||||||
DSIndexer.setBatchProcessingMode(false);
|
|
||||||
Date endTime = new Date();
|
Date endTime = new Date();
|
||||||
System.out.println("Started: " + startTime.getTime());
|
System.out.println("Started: " + startTime.getTime());
|
||||||
System.out.println("Ended: " + endTime.getTime());
|
System.out.println("Ended: " + endTime.getTime());
|
||||||
|
@@ -164,7 +164,7 @@ public class IndexEventConsumer implements Consumer {
|
|||||||
// update the changed Items not deleted because they were on create list
|
// update the changed Items not deleted because they were on create list
|
||||||
for (DSpaceObject iu : objectsToUpdate) {
|
for (DSpaceObject iu : objectsToUpdate) {
|
||||||
/* we let all types through here and
|
/* we let all types through here and
|
||||||
* allow the search DSIndexer to make
|
* allow the search indexer to make
|
||||||
* decisions on indexing and/or removal
|
* decisions on indexing and/or removal
|
||||||
*/
|
*/
|
||||||
String hdl = iu.getHandle();
|
String hdl = iu.getHandle();
|
||||||
|
Reference in New Issue
Block a user