Skip to content

Commit

Permalink
[BR-3539] Add wildcard to relax search
Browse files Browse the repository at this point in the history
  • Loading branch information
MDuncan98 committed Sep 22, 2023
1 parent 17d70d0 commit d0e7150
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Gibe.Umbraco.Blog/Filters/SearchTermBlogPostFilter.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using Examine.Search;
using Examine;
using Examine.Search;

namespace Gibe.Umbraco.Blog.Filters
{
Expand All @@ -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());
}
}
}

0 comments on commit d0e7150

Please sign in to comment.