Defines search fields and whether to include them in results.
- Namespace
- Statiq
.Lunr - Containing Type
- GenerateLunrIndex
Syntax
public GenerateLunrIndex WithFields(IEnumerable<KeyValuePair<string, FieldType>> fields)
Remarks
See
WithField(string, FieldType) for more information.
Parameters
| Name | Type | Description |
|---|---|---|
| fields | IEnumerable |
The fields to define. |
Return Value
| Type | Description |
|---|---|
| GenerateLunrIndex | The current module instance. |