Skip to content
This repository has been archived by the owner on Sep 2, 2021. It is now read-only.

Latest commit

 

History

History
39 lines (33 loc) · 901 Bytes

Readme.md

File metadata and controls

39 lines (33 loc) · 901 Bytes

Random stuff that i tend to use often

Conf.metadataDatabase.view('categories/all', {reduce:false}, function(err, res){console.log('got it')})

curl -XPUT 'localhost:9200/_river/registry/_meta' -d '{ "type" : "couchdb", "couchdb" : { "host" : "localhost", "port" : 5984, "db" : "registry", "user": "activesphere", "password": "******", "ignore_attachments":true, "filter" : null }, "index" : { "index" : "registry", "type" : "registry", "bulk_size" : "100", "bulk_timeout" : "10ms" } }'

curl -XGET 'http://localhost:9200/registry/_search?pretty=true' -d ' { "query" : { "matchAll" : {} } }'

curl -XGET 'http://localhost:9200/registry/_search?pretty=true' -d ' { "query" : { "text" : { "description": "directories" } } }'