tblobaum/mongoose-troop — pull request #4 by sorensen (2011-12-11 00:30:17+00:00)
Title: Keyword extraction plugin

Simple keyword extractor.

Single source to target field:

schema.plugin(troop.extractKeywords, {
source: 'name'
, target: 'keywords'
})

Multiple sources to target field:

schema.plugin(troop.extractKeywords, {
source: ['name', 'description]
, target: 'keywords'
})