From c4188c3a44d45d0590774e17d6440a579fd86d03 Mon Sep 17 00:00:00 2001 From: Salih Date: Mon, 6 May 2024 12:48:45 +0300 Subject: [PATCH] Update ElasticDocumentFullSearch.cs --- .../Documents/FullSearch/Elastic/ElasticDocumentFullSearch.cs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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