public async Task ReindexAsync(ReindexInput input) { var project = await _projectRepository.GetAsync(input.ProjectId); await _documentFullSearch.DeleteAllByProjectIdAsync(project.Id); var docs = await _documentRepository.GetListByProjectId(project.Id); foreach (var doc in docs) { if (doc.FileName == project.NavigationDocumentName) { continue; } if (doc.FileName == project.ParametersDocumentName) { continue; } await _documentFullSearch.AddOrUpdateAsync(doc); } }
public async Task ReindexAsync(ReindexInput input) { _elasticSearchService.ValidateElasticSearchEnabled(); await ReindexProjectAsync(input.ProjectId); }