WithStemming(Func<string, string>) Method
Turns on stemming, which reduces words to their base form, using a custom stemming delegate. Note that turning on stemming reduces the effectiveness of wildcard searches and disables the default client-side typeahead search behavior in the generated JavaScript file.
Namespace
Statiq.Lunr
Containing Type
GenerateLunrIndex

Syntax

public GenerateLunrIndex WithStemming(Func<string, string> stem)

Parameters

Name Type Description
stem Func<string, string> A delegate that returns the stemmed version of each word (or the original word if it does not have a stem).

Return Value

Type Description
GenerateLunrIndex The current module instance.