thesaurusDir = _applicationContext.getBean(ThesaurusManager.class).getThesauriDirectory();
if (context.getUserSession() == null) {
UserSession session = new UserSession();
context.setUserSession(session);
session.loginAs(new User().setUsername("admin").setId(-1).setProfile(Profile.Administrator));
}
// get lastchangedate of all metadata in index
Map<String,String> docs = searchMan.getDocsChangeDate();
// set up results HashMap for post processing of records to be indexed