}
public static void flush(Authorization auth) throws UnauthorizedException{
ForumFactory forumFactory = ForumFactory.getInstance(auth);
if(! forumFactory.getPermissions(auth).get(Constants.SYSTEM_ADMIN)) throw new UnauthorizedException();
try {
IndexWriter writer = new IndexWriter(new File(PATH), new StopAnalyzer(), true);
writer.close();
} catch (IOException e) {
log.error("impossible de flusher l'index ", e);