couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sean Copenhaver <>
Subject Re: How to use the changes feed with a view as filter
Date Mon, 08 Aug 2011 12:17:45 GMT
Oh wow, I was unaware that you could filter by view. The code indeed makes
it look that way. I'm not sure which release this was done in though, or if
you would need to build from latest source.

Anyway, the code makes me think the request would be more like this:

I get that from here:

Looks like those function clauses are to define the different built in
filters plus the last one to catch custom ones. The one on that line looks
like what you are after and it's expecting a 'view' query string parameter I

I believe the _design filter is to monitor for when a design document
changes and not to filter by a function inside of it. I don't have anything
setup to test this though.

Hopefully someone with not knowledge is able to confirm this and which
release this was in.

On Mon, Aug 8, 2011 at 7:32 AM, Jeroen van Dijk

> I've tried to run the changes feed on a specific view, but so far I haven't
> succeeded. I'm only able to use the 'doc_ids' filter, but I can't filter
> using a view.
> I've tried the following requests (using IrisCouch, couchdb version 1.1):
>    GET
> "_design/mydb/_view/my_view]
>    GET
> Both give me the same result whereas I would expect the 'filter=_design'
>  to give me the result of the map function and not the changes of the design
> document itself. The second request also works without the design parameter:
>    GET
> I think that also indicates I am doing something wrong. Anyone knows how to
> get this working?
> Thanks,
> Jeroen
> NB. My Erlang is not good enough to understand what exactly happens here:

“The limits of language are the limits of one's world. “ -Ludwig von

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