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":