public void Execute(IJobExecutionContext context)
        {
            var data = LuceneSearchDataRepository.GetAll();

            LuceneSearch.AddUpdateLuceneIndex(LuceneSearchDataRepository.GetAll());
            AuditLogDbContext.getInstance().createAuditLog(new WebApplication2.Models.AuditLog
            {
                action  = "[Search]",
                remarks = "Indexing data count: " + data.Count,
            });
        }
Beispiel #2
0
 public ActionResult SearchCreateIndex()
 {
     LuceneSearch.AddUpdateLuceneIndex(LuceneSearchDataRepository.GetAll());
     TempData["Result"] = "Search index was created successfully!";
     return(RedirectToAction("Index"));
 }