Beispiel #1
0
 public void Execute(JobExecutionContext context)
 {
     try
     {
         logger.Debug("索引开始");
         LuceneLogic temp = new LuceneLogic();
         temp.CreateIndex();
         logger.Debug("索引结束");
     }
     catch (Exception ex)
     {
         logger.Debug("启动索引任务异常", ex);
     }
 }
        protected void Page_Load(object sender, EventArgs e)
        {
            LuceneLogic llog = new LuceneLogic();

            llog.CreateIndex();
        }