Get Search Results Match Contained a specific string



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

Aug 28, 2015 8:35

Here is how can do that:

var searchQuery = client.Search<BlogPost>()
    .Filter(x => x.Title.MatchCaseInsensitive("whatever"));

Also, have a look at the documentation:

Aug 28, 2015 11:18

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);

tack !

Aug 30, 2015 9:02
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.