olivernn / lunr.js

A bit like Solr, but much smaller and not as bright
http://lunrjs.com
MIT License
8.87k stars 546 forks source link

Search demo is underwhelming, terms not found; due to apostrophe? #520

Open fingolfin opened 1 year ago

fingolfin commented 1 year ago

I tried https://olivernn.github.io/moonwalkers and was quite underwhelmed: e.g. I searched for NASA, and... it didn't highlight NASA's, nor did I find any way to get that to highlight.

This is even more striking when search for Casper which gives zero hits. Yet the entry for "Charles Duke" says:

The latter feat was accomplished by Mattingly when he ventured out to "Casper's" SIM-bay for the retrieval [...]

webketje commented 6 months ago

Though the demo site showcases additional functionality that is not part of lunr.js (the search front-end), there could indeed be some lunr.Pipeline finetuning or front-end search string pre-processing. There are other issues, for example if one searches for part of a word with at most 4 letters, no results will be returned either.