cortex-search-utils

utils model for cortex search

Cortex Search Utils

Utils functions for cortex search

npm install cortex-search-utils --save
var search = require('cortex-search-utils')(url, options);
// or
var search = require('cortex-search-utils')(couch); // couch is a CouchDB instance
 
search.searchByWord(['app', 'data'], function(err, rows) {
    // handle results
});
 

Search packages that contains words in name or keywords

  • words: String|Array
  • options: Object
  • cb: function

Search packages whose name is in names

  • names: String|Array
  • options: Object
  • cb: function

Search packages which contains keywords in keywords

  • keywords: String|Array
  • options: Object
  • cb: function

Search packages which is maintained by user in authors

  • authors: String|Array
  • options: Object
  • cb: function

(The MIT License)