mongoose-fulltext-plugin
N-gram based searching for mongoose models
Installation
$ npm install --save mongoose-fulltext-plugin
Usage
const mongoose = ;const fulltext = ; const schema = title: String description: String; schema;const Model = mongoose; Model;
Plugin Options
fields
- array of document fields to be used for computing n-grams. All string fields by default.stemmer
- function to be used for computing word stem. stemmer by default.