Summary
This allows you to customize the Lunr.js JavaScript that this module creates.
Syntax
public SearchIndex WithScript(Func<StringBuilder, IExecutionContext, string> script)
Parameters
Name |
Type |
Description |
script |
Func<StringBuilder, IExecutionContext, string> |
A script transformation function. The System.Text.StringBuilder contains
the generated script content. You can manipulate as appropriate and then return the final
script as a string . |
Return Value
Type |
Description |
SearchIndex |
The current module instance. |