couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alexander Gabriel <>
Subject fetching data: how to filter?
Date Sun, 15 May 2011 20:34:12 GMT
I want to fetch documents from a CouchDb named evab. The documents include a
field "Typ" and I want to fetch those with Typ = Beobachtung.

So far I've tried:

   - curl -d "{\"Typ\":\"Beobachtung\"}" -X POST
   - curl -d "{\"docs\": [{\"Typ\":\"Beobachtung\"}]}" -X POST
   - replacing {\"Typ\":\"Beobachtung\"} or {\"docs\":
   [{\"Typ\":\"Beobachtung\"}]} with "@TypBeob_Kriterien.json" to circumvent
   problems with the windows-command-tool and " or '.

I consistently get all the data of all the docs in the CouchDb.

>From the documentation I have not understood:

   - _all_docs or _bulk_docs? It seems that both work the same.
   - Is ist maybe only possible to filter with keys = _id's?
   - Is it possible to fetch the data from a view?

Or simply: What is the best way to do it?

Thanks for help!

Alexander Gabriel

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message