From d0e7150a0f33cf2ba67aed0bec54377967e6d5af Mon Sep 17 00:00:00 2001 From: Michael Duncan <81819246+MDuncan98@users.noreply.github.com> Date: Fri, 22 Sep 2023 14:51:03 +0100 Subject: [PATCH] [BR-3539] Add wildcard to relax search --- Gibe.Umbraco.Blog/Filters/SearchTermBlogPostFilter.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Gibe.Umbraco.Blog/Filters/SearchTermBlogPostFilter.cs b/Gibe.Umbraco.Blog/Filters/SearchTermBlogPostFilter.cs index 6b84122..1db2284 100644 --- a/Gibe.Umbraco.Blog/Filters/SearchTermBlogPostFilter.cs +++ b/Gibe.Umbraco.Blog/Filters/SearchTermBlogPostFilter.cs @@ -1,4 +1,5 @@ -using Examine.Search; +using Examine; +using Examine.Search; namespace Gibe.Umbraco.Blog.Filters { @@ -13,7 +14,7 @@ public SearchTermBlogPostFilter(string searchTerm) public IBooleanOperation GetCriteria(IQuery query) { - return query.Field(ExamineFields.BodyText, SearchTerm); + return query.Field(ExamineFields.BodyText, SearchTerm.MultipleCharacterWildcard()); } } }