From fdc39f2d717fca772ae5aea178a47241a4bab37f Mon Sep 17 00:00:00 2001 From: Mike Alhayek Date: Mon, 9 Dec 2024 12:26:08 -0800 Subject: [PATCH] Populate Template field from Elasticsearch recipe (#17195) --- .../Services/ElasticsearchQueryHandler.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/OrchardCore/OrchardCore.Search.Elasticsearch.Core/Services/ElasticsearchQueryHandler.cs b/src/OrchardCore/OrchardCore.Search.Elasticsearch.Core/Services/ElasticsearchQueryHandler.cs index 595b3bd924e..cb5b4c46451 100644 --- a/src/OrchardCore/OrchardCore.Search.Elasticsearch.Core/Services/ElasticsearchQueryHandler.cs +++ b/src/OrchardCore/OrchardCore.Search.Elasticsearch.Core/Services/ElasticsearchQueryHandler.cs @@ -15,7 +15,7 @@ public override Task UpdatingAsync(UpdatingQueryContext context) private static Task UpdateQueryAsync(DataQueryContextBase context) { - if (context.Query.Source == ElasticsearchQuerySource.SourceName) + if (context.Query.Source != ElasticsearchQuerySource.SourceName) { return Task.CompletedTask; }