Exemplo n.º 1
0
        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,
            });
        }
Exemplo n.º 2
0
 public ActionResult SearchCreateIndex()
 {
     LuceneSearch.AddUpdateLuceneIndex(LuceneSearchDataRepository.GetAll());
     TempData["Result"] = "Search index was created successfully!";
     return(RedirectToAction("Index"));
 }