Adds the "position" metadata to the metadata allowlist in the search index, which
enables position information for each search term in the search results at the expense of index size.
- Namespace
- Statiq
.Lunr - Containing Type
- GenerateLunrIndex
Syntax
public GenerateLunrIndex AllowPositionMetadata(bool allowPositionMetadata = true)
Remarks
See https://lunrjs.com/guides/core_concepts.html for more information.
Parameters
Name | Type | Description |
---|---|---|
allowPositionMetadata | bool | true to add position metadata to the allowlist, false otherwise. |
Return Value
Type | Description |
---|---|
GenerateLunrIndex | The current module instance. |