示例#1
0
文件: Reindex.java 项目: erlendfh/ems
  private void work() throws Exception {
    System.out.println("Indexing all events...");

    for (Event event : eventDao.getEvents()) {
      indexEvent(event);
    }

    SearchService.IndexStatistics statistics = searchService.getIndexStatistics();

    System.out.println("The index now contain " + statistics.numberOfDocuments + " documents.");
  }
示例#2
0
文件: Reindex.java 项目: erlendfh/ems
 private void indexSession(Session session) {
   System.out.println("Indexing session: " + session.getTitle() + " (" + session.getId() + ")...");
   searchService.update(session);
 }