couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Scott Weber <>
Subject Using filters
Date Tue, 28 Jan 2014 22:53:40 GMT
I am going through many of the tutorials for design docs, and trying various things.

I saw that filters are used in replication, but it is correct that a "filter" cannot get accessed
via a URL, like other handlers?

Given the design doc filter below:
   "_id": "_design/showme",
   "_rev": "9-8d74f29a2890e402275a54f5b17997fd",
   "filters": {
       "useit": "function(doc, req){...}"
  (yes there is really a function provided, edited for content)

And attempting to run the filter using this:

Returns the following:
{"error":"not_found","reason":"missing handler: _filter"}

This URL structure works for shows, views, lists which are all accessed through this "handler". 
Why the difference?  


View raw message