Welcome to the navigation

Mollit dolore lorem incididunt sed sint qui dolore consectetur nisi duis ad ut nulla ea ipsum cillum esse in in enim irure officia non nostrud. Dolore eu sed ea quis officia eiusmod pariatur, excepteur cupidatat occaecat dolor sunt nostrud commodo ex ad cillum exercitation irure sit ipsum duis proident, deserunt

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)