Welcome to the navigation

Quis excepteur ut reprehenderit minim dolore aute labore irure occaecat amet, ullamco laborum, in magna incididunt culpa do qui ex ad voluptate exercitation anim aliqua. Culpa nisi laborum, anim do excepteur dolor in minim pariatur, sunt commodo aliquip fugiat proident, ut eiusmod nostrud enim ea officia magna in dolore irure

Yeah, this will be replaced... But please enjoy the search!

EPiServer Find Wildcard searching

This is a bit of a hidden feature in EPiServer Find. Typically when you want wildcard searching miscellaneous blogs will make us use the EPiServer UnifiedSearch. There is a much simpler solution than so.

public static class SearchExtensions
    public static IQueriedSearch<T> WildCardSearch<T>(this ITypeSearch<T> search, string query)
        return search.For<T>(query, q => q.Query = string.Concat("*", query, "*"));

Use it like this

var result = SearchClient.Instance.Search<FAQItem>()
                    .OrderByDescending(x => x.Name)