courseNodeIndexer = new CourseIndexer();
}
public void doIndex(SearchResourceContext repositoryResourceContext, ICourse course, CourseNode courseNode, OlatFullIndexer indexWriter) {
try {
SearchResourceContext courseNodeResourceContext = new SearchResourceContext(repositoryResourceContext);
courseNodeResourceContext.setBusinessControlFor(courseNode);
courseNodeResourceContext.setTitle(courseNode.getShortTitle());
courseNodeResourceContext.setDescription(courseNode.getLongTitle());
doIndexForum(courseNodeResourceContext, course, courseNode, indexWriter);
// go further, index my child nodes
courseNodeIndexer.doIndexCourse(repositoryResourceContext, course, courseNode, indexWriter);
} catch(Exception ex) {
log.error("Exception indexing courseNode=" + courseNode, ex);