Closed makoto closed 11 years ago
I run into the same problem. If you try to search for more than one word and the first word will not create a result you get an error like:
TypeError: invalid 'in' operand root
has(token="", root=1)
in lunr.js (1185)
My Solution in lunr.js (1180)
is
var root = typeof(root) != "object" ? this.root : root,
This takes care of the var
scope
The bug fix for https://github.com/olivernn/lunr.js/issues/12 .