Beispiel #1
0
        public JsonResult ClearIndex()
        {
            if (LuceneHelper.ClearLuceneIndex())
            {
                AR.SetSuccess(String.Format(Messages.AlertDeleteSuccess, "索引"));
                return(Json(AR, JsonRequestBehavior.DenyGet));
            }

            else
            {
                AR.Setfailure("索引被锁,不能被清除,迟点再试!");
                return(Json(AR, JsonRequestBehavior.DenyGet));
            }
        }