imgr.executeIndexOperationNow(
new AddEntryOperation(WebloggerFactory.getWeblogger(), (IndexManagerImpl)imgr, wd2));
Thread.sleep(1000);
SearchOperation search = new SearchOperation(imgr);
search.setTerm("Enterprise");
imgr.executeIndexOperationNow(search);
assertEquals(2, search.getResultsCount());
SearchOperation search2 = new SearchOperation(imgr);
search2.setTerm("Tholian");
imgr.executeIndexOperationNow(search2);
assertEquals(1, search2.getResultsCount());
// Clean up
imgr.removeEntryIndexOperation(wd1);
imgr.removeEntryIndexOperation(wd2);
SearchOperation search3 = new SearchOperation(imgr);
search3.setTerm("Enterprise");
imgr.executeIndexOperationNow(search3);
assertEquals(0, search3.getResultsCount());
}