How to get all documents with couchdb using lightcouch api in java

Is there a way to get all documents from db instead of specifying an id and getting a single document using the lightcouch api in Java. I am currently using the method

JsonObject json = dbClient.find (JsonObject.class, "some-id") to get one document.

Thanks in advance.

+5
source share
2 answers

How about browsing _all_docs? This will return a list of all documents in the database. Or, if you include include_docs=truein the request, you will also receive the contents of the documents.

+5
source

... , , . , . , ... LightCouch, , , "" , .

0

All Articles