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)); } }
public void ReindexUniversalSearch() { _universalSearchIndexManager.ReindexAll(); }