From d08a99d0dbe42722532ac75057312401f863d2ee Mon Sep 17 00:00:00 2001 From: Emrah Tokalak Date: Thu, 7 Nov 2024 21:37:48 +0300 Subject: [PATCH] Fix RangeQueryProvider to correctly assign nodeKind for 'lt' and 'lte' cases (#16965) Co-authored-by: emrah.tokalak --- .../QueryProviders/RangeQueryProvider.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/OrchardCore/OrchardCore.Search.Lucene.Core/QueryProviders/RangeQueryProvider.cs b/src/OrchardCore/OrchardCore.Search.Lucene.Core/QueryProviders/RangeQueryProvider.cs index 6bcb9d365ca..89eef231d52 100644 --- a/src/OrchardCore/OrchardCore.Search.Lucene.Core/QueryProviders/RangeQueryProvider.cs +++ b/src/OrchardCore/OrchardCore.Search.Lucene.Core/QueryProviders/RangeQueryProvider.cs @@ -43,11 +43,11 @@ public Query CreateQuery(ILuceneQueryService builder, LuceneQueryContext context break; case "lt": lt = element.Value; - nodeKind = gt.GetValueKind(); + nodeKind = lt.GetValueKind(); break; case "lte": lt = element.Value; - nodeKind = gt.GetValueKind(); + nodeKind = lt.GetValueKind(); includeUpper = true; break; case "boost":