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

Skip adding null fieldTokens #174

Closed awcab closed 9 years ago

awcab commented 9 years ago

If a particular doc doesn't have a field, it will have null tokens, so don't add null to the set to prevent invalid ref later.

olivernn commented 9 years ago

I went with a different implementation, but the underlying issue should now be fixed in the latest version, 0.6.0. Thanks.