WithSearchItems(Config<IEnumerable<IEnumerable<KeyValuePair<string, object>>>>) Method
Use a custom delegate to get search items for each input document. Only the reference and search field keys will be retrieved from the returned item(s), all other values will be ignored (I.e. they won't be added to the search automatically).
Namespace
Statiq.Lunr
Containing Type
GenerateLunrIndex

Syntax

public GenerateLunrIndex WithSearchItems(Config<IEnumerable<IEnumerable<KeyValuePair<string, object>>>> getSearchItems)

Parameters

Name Type Description
getSearchItems Config<IEnumerable<IEnumerable<KeyValuePair<string, object>>>> A delegate that gets search items.

Return Value

Type Description
GenerateLunrIndex The current module instance.