Get Search Results Match Contained a specific string

Vote:
 

Hej,

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

#133227
Aug 28, 2015 8:35
Vote:
 

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/

#133234
Aug 28, 2015 11:18
Vote:
 

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 !

#133248
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.