wd1.setText(
"When the Enterprise attempts to ascertain the fate of the "
+"U.S.S. Defiant which vanished 3 weeks ago, the warp engines "
+"begin to lose power, and Spock reports strange sensor readings.");
imgr.executeIndexOperationNow(
new AddEntryOperation((IndexManagerImpl) imgr, wd1));
WeblogEntryData wd2 = new WeblogEntryData();
wd2.setId("dummy2");
wd2.setAnchor("dummy2");
wd2.setCreator(user);
wd2.setUpdateTime(new Timestamp(System.currentTimeMillis()));
wd2.setPubTime(new Timestamp(System.currentTimeMillis()));
wd2.setTitle("A Piece of the Action");
wd2.setWebsite(website);
wd2.setText(
"The crew of the Enterprise attempts to make contact with "
+"the inhabitants of planet Sigma Iotia II, and Uhura puts Kirk "
+"in communication with Boss Oxmyx.");
imgr.executeIndexOperationNow(
new AddEntryOperation((IndexManagerImpl) imgr, wd2));
Thread.sleep(1000);
SearchOperation search = new SearchOperation(imgr);
search.setTerm("Enterprise");