lunr.js
lunr.js copied to clipboard
Boosting results from only one field
I'm playing with the example implementation here and I'd expect that when I enter name:john^1000000 body:john
it will prioritize results where the word "john"
is in its title.
But that's not what's happening. The first result is "Charles Duke" and then "John Young" which is not what I'd expect. It looks like the boost has no effect.
for posterity, I had the same issue and determined it was because boosts are relative to terms for the same field only