* @throws IOException
* @throws InterruptedException
*/
private void doIndexFile(String filename, Long forumKey, SearchResourceContext leafResourceContext, OlatFullIndexer indexWriter) throws IOException,InterruptedException {
OlatRootFolderImpl forumContainer = DialogElementsController.getForumContainer(forumKey);
VFSLeaf leaf = (VFSLeaf) forumContainer.getItems(new VFSLeafFilter()).get(0);
if (log.isDebug()) log.debug("Analyse VFSLeaf=" + leaf.getName());
try {
if (FileDocumentFactory.getInstance().isFileSupported(leaf)) {
leafResourceContext.setFilePath(filename);
leafResourceContext.setDocumentType(TYPE_FILE);