Esempio n. 1
0
 public override void Execute(IEnumerable <int> data)
 {
     foreach (IIndexManagerBase indexManager in _indexService.GetAllIndexManagers())
     {
         indexManager.ReIndex();
     }
     _universalSearchIndexManager.ReindexAll();
 }
 protected override BatchJobExecutionResult OnExecute(RebuildUniversalSearchIndex batchJob)
 {
     try
     {
         _universalSearchIndexManager.ReindexAll();
         return(BatchJobExecutionResult.Success());
     }
     catch (Exception exception)
     {
         CurrentRequestData.ErrorSignal.Raise(exception);
         return(BatchJobExecutionResult.Failure(exception.Message));
     }
 }
Esempio n. 3
0
 public void ReindexUniversalSearch()
 {
     _universalSearchIndexManager.ReindexAll();
 }