From 91b88e0e9558d2766a2c52a5aa372f851687817a Mon Sep 17 00:00:00 2001 From: Mike Alhayek Date: Thu, 21 Nov 2024 12:11:07 -0800 Subject: [PATCH] fix build --- .../Providers/ElasticsearchContentPickerResultProvider.cs | 4 ++-- .../Services/ElasticsearchIndexManager.cs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/OrchardCore/OrchardCore.Search.Elasticsearch.Core/Providers/ElasticsearchContentPickerResultProvider.cs b/src/OrchardCore/OrchardCore.Search.Elasticsearch.Core/Providers/ElasticsearchContentPickerResultProvider.cs index 1cc6033eadb..722e5024805 100644 --- a/src/OrchardCore/OrchardCore.Search.Elasticsearch.Core/Providers/ElasticsearchContentPickerResultProvider.cs +++ b/src/OrchardCore/OrchardCore.Search.Elasticsearch.Core/Providers/ElasticsearchContentPickerResultProvider.cs @@ -61,7 +61,7 @@ await _elasticIndexManager.SearchAsync(indexName, async elasticClient => .Filter(f => f .Terms(t => t .Field("Content.ContentItem.ContentType") - .Term(valuesQuery) + .Terms(valuesQuery) ) ) ) @@ -77,7 +77,7 @@ await _elasticIndexManager.SearchAsync(indexName, async elasticClient => .Filter(f => f .Terms(t => t .Field("Content.ContentItem.ContentType") - .Term(valuesQuery) + .Terms(valuesQuery) ) ) .Should(s => s diff --git a/src/OrchardCore/OrchardCore.Search.Elasticsearch.Core/Services/ElasticsearchIndexManager.cs b/src/OrchardCore/OrchardCore.Search.Elasticsearch.Core/Services/ElasticsearchIndexManager.cs index 8f5f8a25623..c90cf8ab04b 100644 --- a/src/OrchardCore/OrchardCore.Search.Elasticsearch.Core/Services/ElasticsearchIndexManager.cs +++ b/src/OrchardCore/OrchardCore.Search.Elasticsearch.Core/Services/ElasticsearchIndexManager.cs @@ -408,7 +408,7 @@ public async Task DeleteDocumentsAsync(string indexName, IEnumerable f .Terms(t => t .Field(IndexingConstants.ContentItemIdKey) - .Term(new TermsQueryField(contentItemIds.Select(id => FieldValue.String(id)).ToArray())) + .Terms(new TermsQueryField(contentItemIds.Select(id => FieldValue.String(id)).ToArray())) ) ) )