A super simple search index based on Term Frequency–Inverse Document Frequency using the awesome natural module.
Useful when you only have a small set of files/strings to index, and want a usable, though limited search.
$ npm install node-index
Then build up an index in your code by calling
addDocument(key, document) and search
within the index using
index = ;index;index;// search for string 'string'index;// returns sorted results by relevence in the form of:key: 'dog'measure: 01337doc: /* original object you passed in */...