1.0.1 • Published 10 years ago

cortex-search-utils v1.0.1

Weekly downloads
6
License
BSD
Repository
github
Last release
10 years ago

Cortex Search Utils

Utils functions for cortex search

Installation

npm install cortex-search-utils --save

Usage

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
});

APIs

searchByWord(words, options, cb)

Search packages that contains words in name or keywords

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

searchByName(names, options, cb)

Search packages whose name is in names

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

searchByKeyword(keywords, options, cb)

Search packages which contains keywords in keywords

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

searchByAuthor(authors, options, cb)

Search packages which is maintained by user in authors

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

License

(The MIT License)

1.0.1

10 years ago

1.0.0

10 years ago

0.0.8

10 years ago

0.0.7

10 years ago

0.0.6

10 years ago

0.0.5

10 years ago

0.0.4

10 years ago

0.0.3

10 years ago

0.0.2

10 years ago

0.0.1

10 years ago