Return-Path: X-Original-To: apmail-couchdb-user-archive@www.apache.org Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id CF0B910D71 for ; Tue, 28 Jan 2014 22:57:52 +0000 (UTC) Received: (qmail 89037 invoked by uid 500); 28 Jan 2014 22:57:49 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 88693 invoked by uid 500); 28 Jan 2014 22:57:49 -0000 Mailing-List: contact user-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@couchdb.apache.org Delivered-To: mailing list user@couchdb.apache.org Received: (qmail 88573 invoked by uid 99); 28 Jan 2014 22:57:49 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 28 Jan 2014 22:57:49 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of kxepal@gmail.com designates 74.125.82.53 as permitted sender) Received: from [74.125.82.53] (HELO mail-wg0-f53.google.com) (74.125.82.53) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 28 Jan 2014 22:57:43 +0000 Received: by mail-wg0-f53.google.com with SMTP id y10so2124684wgg.32 for ; Tue, 28 Jan 2014 14:57:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=fj3A7sWSEBmr7UEgMUnT0TXb4AZQ6+mEy+GgFptyvVw=; b=OsEpsITXc8/EGa3uBBjD5xh2iQDwjCfIZd0Zio9UTk045qJCteWpqV+Jay6YjvhyfK CJu54gEnL10qCtqv3ZtGG9vVCW/YzvI+bfNG/X2NTTh5TTujvh/5rv519SJu8RfXqXXB uyZQ0SnrI6OPVsZKwgfgZgso+UErLE92AgxBuur7eAvrseEUFeXmfiMPucjYzAJx2Emv tLfqgxHS5QDcokXQpwUQmrO41VscieLhjR1cZZ3TnKcEDcxhtXz3wdc8ApY+jNB9bfor jYj3DQs7Wislk8H/u+ai4+9dZJuSLO6AzIg/aNAC6RwarVFuJYspknRSxoSczZNWFZaq 9mqg== MIME-Version: 1.0 X-Received: by 10.180.21.244 with SMTP id y20mr17382471wie.37.1390949843379; Tue, 28 Jan 2014 14:57:23 -0800 (PST) Received: by 10.180.74.140 with HTTP; Tue, 28 Jan 2014 14:57:23 -0800 (PST) In-Reply-To: <1390949620.25281.YahooMailNeo@web181704.mail.ne1.yahoo.com> References: <1390949620.25281.YahooMailNeo@web181704.mail.ne1.yahoo.com> Date: Wed, 29 Jan 2014 02:57:23 +0400 Message-ID: Subject: Re: Using filters From: Alexander Shorin To: "user@couchdb.apache.org" Content-Type: text/plain; charset=UTF-8 X-Virus-Checked: Checked by ClamAV on apache.org Filter functions are applies on changes feed and are not accessible for direct requests: http://docs.couchdb.org/en/latest/api/database/changes.html#filtering -- ,,,^..^,,, On Wed, Jan 29, 2014 at 2:53 AM, Scott Weber wrote: > 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: > http://localhost:5984/db/_design/showme/_filter/useit > > 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? > > > -Scott >