We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
It would be good to support metadataWhitelist to store index positions, see https://github.com/olivernn/moonwalkers/blob/6d5a6e976921490033681617e92ea42e3a80eed0/build-index#L23-L29 and olivernn/lunr.js#25
The text was updated successfully, but these errors were encountered:
Metadata whitelist is already supported, please see https://lunr.readthedocs.io/en/latest/customisation.html#token-meta-data
To have the position returned in the match data you simply need to append it to the whitelist:
builder.metadata_whitelist.append("position")
No need to register a function to the pipeline.
Sorry, something went wrong.
No branches or pull requests
It would be good to support metadataWhitelist to store index positions, see https://github.com/olivernn/moonwalkers/blob/6d5a6e976921490033681617e92ea42e3a80eed0/build-index#L23-L29 and olivernn/lunr.js#25
The text was updated successfully, but these errors were encountered: