use of org.bedework.calfacade.indexing.BwIndexer in project bw-calendar-engine by Bedework.
the class PublicProcessor method process.
@Override
public void process() throws CalFacadeException {
try (BwSvc bw = getBw()) {
final CalSvcI svc = bw.getSvci();
/* First index the public collection(s) */
indexCollection(svc, Util.buildPath(false, "/", getPublicCalendarRoot()));
final BwIndexer indexer = svc.getIndexer(principal, indexRootPath);
status.stats.inc(IndexedType.categories, svc.getCategoriesHandler().reindex(indexer));
status.stats.inc(IndexedType.contacts, svc.getContactsHandler().reindex(indexer));
status.stats.inc(IndexedType.locations, svc.getLocationsHandler().reindex(indexer));
}
}
Aggregations