olivernn / lunr.js

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

Why does a wildcard require at least 1 character? #529

Open chase-lewis-akasa opened 10 months ago

chase-lewis-akasa commented 10 months ago

i have a title with 'ehr image' in it. If i search '+ehr +imag' i will get the item returned as expected. However, if I search '+ehr +image' i will get no results which seems to be exactly the opposite of what the documentation and most the comments i've read in Github threads says should happen. Am I missing something?

Edit: More testing it seems to be just certain words are fundamentally borked. "+image" fails but something like "+shepard" or "+bean*" like in the example works fine ... another word I found that seems to fail is "notes".

It's super confusing ...