Get unlimited public & private packages + package-based permissions with npm Pro.Get started »

nano-lucene

1.0.6 • Public • Published

nano-couchdb-lucene

couchdb-lucene plugin for nano

var nano = require('nano')(db_url);
var db = nano.db.use(config.db);
var nano_lucene = require('..')(nano, db, { fragment: '_fti' }); //require the plugin

//Fire the search query
nano_lucene.search('user', 'by_name', { q: 'merchant' }, function(err, body){
    if(err){
        console.log(err);
        return;
    }
    console.log(body);
});

Install

npm i nano-lucene

DownloadsWeekly Downloads

1

Version

1.0.6

License

MIT

Last publish

Collaborators

  • avatar