diff --git a/modules/docs/src/Volo.Docs.Domain/Volo/Docs/Documents/FullSearch/Elastic/ElasticDocumentFullSearch.cs b/modules/docs/src/Volo.Docs.Domain/Volo/Docs/Documents/FullSearch/Elastic/ElasticDocumentFullSearch.cs index c9a926d10d..22d4bf9ff4 100644 --- a/modules/docs/src/Volo.Docs.Domain/Volo/Docs/Documents/FullSearch/Elastic/ElasticDocumentFullSearch.cs +++ b/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) { - // delete many - var ids = existResponse.Documents.Select(x => x.Id).ToList(); - HandleError(await client.DeleteManyAsync(ids, _options.IndexName, cancellationToken)); + HandleError(await client.DeleteManyAsync(existResponse.Documents, _options.IndexName, cancellationToken)); } var esDocument = new EsDocument