olivernn / lunr.js

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

After upgrade to latest version(2) from 1.0.0 failed to add doc #258

Closed ghost closed 7 years ago

ghost commented 7 years ago
this.index = lunr(function(){
        this.field('title', { boost: 10 });
        this.field('content');
 `});

this.index.add(doc); //failed with "this.index.add is not a function"

et1421 commented 7 years ago

Seems like this feature is no longer available : https://lunrjs.com/guides/upgrading.html

ghost commented 7 years ago

got it. Thank you very much.