Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

CouchDB simple find

Tags:

couchdb

I have some couchDB database. and i want, as in mongodb, find one item. something like db.find({user : "John"}) That the easiest way to do it?

like image 962
Falcon Avatar asked May 18 '11 11:05

Falcon


People also ask

How do I check my CouchDB data?

Try this URL: http://localhost:5984/_utils/, it will open FUTON editor. Show activity on this post. CouchDB is a NOSQL database. So it works using HTTP requests (url based).

Is CouchDB easy to learn?

CouchDB has the simple structure of HTTP resources and methods (GET, PUT, DELETE) that are easy to understand and use. In CouchDB, data is stored in the flexible document-based structure so, there is no need to worry about the structure of the data.


1 Answers

If you have your queries predefined, you can use views to query your database.

There is also the ability to use temporary views for ad-hoc searches, but they are never recommended for production use because the index is not saved.

If you need something more along the lines of full-text search, check out couchdb-lucene.

like image 123
Dominic Barnes Avatar answered Sep 30 '22 10:09

Dominic Barnes