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; }