In my search results, I would like to add a filter - get only contained a specific string. I tried with MatchContainedCaseInsensitive() didn't succeed. Could you give me an example for this implementation ?
I'm using EpiServer CMS 6 R2
Here is how can do that:
var searchQuery = client.Search<BlogPost>()
.Filter(x => x.Title.MatchCaseInsensitive("whatever"));
Also, have a look at the documentation:http://world.episerver.com/documentation/Items/Developers-Guide/EPiServer-Find/9/DotNET-Client-API/Searching/Filtering/Strings/
Hej, I asked MatchContainedCaseInsensitive not MatchCaseInsensitive
Definition for the delegate public static DelegateFilterBuilder MatchContainedCaseInsensitive<T>(this IEnumerable<T> value, Expression<Func<T, string>> fieldSelector, string valueToMatch);