olivernn / lunr.js

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

Capitalised tags not being detected #41

Closed edwardball closed 11 years ago

edwardball commented 11 years ago

Here's a jsFiddle demonstrating the problem. http://jsfiddle.net/bt5yq/5/

If I give an item capitalized tags in the json, an exact search for the tag will still not return the item in the results.

If the tags are not capitalized, there is no problem at all.

olivernn commented 11 years ago

Thanks for reporting this, I've just pushed a new version (0.4.1) with a fix for this bug.