yeraydiazdiaz / lunr.py

A Python implementation of Lunr.js πŸŒ–
http://lunr.readthedocs.io
MIT License
188 stars 16 forks source link

Add support for metadata whitelisting #77

Closed jimkohl closed 3 years ago

jimkohl commented 4 years ago

lunr.js supports metadata whitelisting look under the TOKEN META-DATA section.

This is useful for adding fields into the index so that when a search matches, more info the key is available for presentation or other purposes.

For example, can return some things like type of thing found (so you could display an icon) or a creation date for sorting results, etc.

Looks like there is another issue for pipeline support; this would also require pipeline support.

Thanks for a great tool. jim

yeraydiazdiaz commented 3 years ago

Lunr 0.6.0 has been released including support for metadata whitelisting.

Let me know how you get on πŸ™‚

jimkohl commented 3 years ago

Veray thanks for doing this! It’s on my list for today. Jim

Sent from my iPhone

On Apr 22, 2021, at 6:22 AM, Yeray Diaz Diaz @.***> wrote:

ο»Ώ Lunr 0.6.0 has been released including support for metadata whitelisting.

Let me know how you get on πŸ™‚

β€” You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.