We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cf9f11f commit a64efb9Copy full SHA for a64efb9
src/Umbraco.Web/umbraco.presentation/umbraco/Search/QuickSearchHandler.ashx.cs
@@ -59,7 +59,11 @@ public void ProcessRequest(HttpContext context)
59
}
60
else
61
{
62
- var operation = criteria.GroupedAnd(new[] { "__nodeName" }, txt.Split(' '));
+ var words = txt.Split(new[] { ' ' }, StringSplitOptions.RemoveEmptyEntries).Select(w => w.ToLower().MultipleCharacterWildcard()).ToList();
63
+ var operation = criteria.GroupedOr(new[] { "__nodeName" }, new[] { words[0] });
64
+ words.RemoveAt(0);
65
+ foreach (var word in words)
66
+ operation = operation.And().GroupedOr(new[] { "__nodeName" }, new[] { word });
67
68
// ensure the user can only find nodes they are allowed to see
69
if (UmbracoContext.Current.UmbracoUser.StartNodeId > 0)
0 commit comments