https://github.com/pouchdb/pouchdb-search
Search plugin for PouchDB.
https://github.com/pouchdb/pouchdb-search
Last synced: 9 months ago
JSON representation
Search plugin for PouchDB.
- Host: GitHub
- URL: https://github.com/pouchdb/pouchdb-search
- Owner: pouchdb
- Created: 2013-11-16T23:03:34.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2017-03-07T07:18:30.000Z (over 9 years ago)
- Last Synced: 2025-08-06T14:11:39.203Z (10 months ago)
- Language: JavaScript
- Homepage: http://pouchdb.com
- Size: 28.3 KB
- Stars: 15
- Watchers: 9
- Forks: 6
- Open Issues: 2
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
pouchdb search
===
```
$ npm install pouchdb-search
```
```javascript
var Pouch = require('pouchdb');
Pouch.plugin({'search': require('pouchdb-search')});
var db = Pouch('name');
db.search(func,options,callback);
db.search('design/name',options,callback);
```
In prgress, known issues:
- like the pouch mapreduce and spatial plugins it does reindex with each query
- ~~only supports default indexes at the moment.~~ Only supports queries from one index at a time