Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
ThenByScore-extension for EPiServer Find
public static ITypeSearch<TSource> ThenByScore<TSource>(this ITypeSearch<TSource> search)
{
return new Search<TSource, IQuery>(search, context =>
context.RequestBody.Sort.Add(new Sorting("_score")));
}
@john-mckillip

This comment has been minimized.

Copy link

@john-mckillip john-mckillip commented Dec 2, 2016

Hi. Thanks for this! Wondering if there is a way to expose the score of a search hit in Find, so that you could filter based on a minimum or range?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment