Browse Source

Update ElasticDocumentFullSearch.cs

pull/19701/head
Salih 2 years ago
parent
commit
c4188c3a44
  1. 4
      modules/docs/src/Volo.Docs.Domain/Volo/Docs/Documents/FullSearch/Elastic/ElasticDocumentFullSearch.cs

4
modules/docs/src/Volo.Docs.Domain/Volo/Docs/Documents/FullSearch/Elastic/ElasticDocumentFullSearch.cs

@ -76,9 +76,7 @@ namespace Volo.Docs.Documents.FullSearch.Elastic
if (existResponse.Documents.Count != 0) if (existResponse.Documents.Count != 0)
{ {
// delete many HandleError(await client.DeleteManyAsync(existResponse.Documents, _options.IndexName, cancellationToken));
var ids = existResponse.Documents.Select(x => x.Id).ToList();
HandleError(await client.DeleteManyAsync(ids, _options.IndexName, cancellationToken));
} }
var esDocument = new EsDocument var esDocument = new EsDocument

Loading…
Cancel
Save