incubator-couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alex Koshelev <daeva...@gmail.com>
Subject Re: Adding GET parameters to views
Date Thu, 06 Aug 2009 20:18:21 GMT
May be `db.view` function has distinct `key` parameter?

---
Alex Koshelev


On Thu, Aug 6, 2009 at 11:53 PM, Michael McCaffrey <mmccaffrey@ittvis.com>wrote:

> I've got this view working in futon and running directly on a browser
> line.
>
>
>
> Any ideas how to get the parameter "key=1" to work with the db.view()
>
>
>
> Works on browser, returning only key=1 rows:
>
> http://127.0.0.1:5984/catalog/_design/catalog/_view/allDocsByFileLocatio
> n?key=1<http://127.0.0.1:5984/catalog/_design/catalog/_view/allDocsByFileLocatio%0An?key=1>
>
>
>
>
>
> View executes but no filtering on key happens in returned results:
>
> ViewResults result =
> db.view("_design/catalog/_view/allDocsByFileLocation?key=1");
>
>
>
>
>
> Something with the syntax I assume.
>
>
>
> Using couchdb4j.
>
>
>
> Thanks
>
>
>
>

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