Return-Path: X-Original-To: apmail-couchdb-dev-archive@www.apache.org Delivered-To: apmail-couchdb-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id A43C5D875 for ; Mon, 27 Aug 2012 10:15:09 +0000 (UTC) Received: (qmail 21289 invoked by uid 500); 27 Aug 2012 10:15:09 -0000 Delivered-To: apmail-couchdb-dev-archive@couchdb.apache.org Received: (qmail 21111 invoked by uid 500); 27 Aug 2012 10:15:09 -0000 Mailing-List: contact dev-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@couchdb.apache.org Delivered-To: mailing list dev@couchdb.apache.org Received: (qmail 21029 invoked by uid 99); 27 Aug 2012 10:15:07 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 27 Aug 2012 10:15:07 +0000 Date: Mon, 27 Aug 2012 21:15:07 +1100 (NCT) From: "Marcos Zanona (JIRA)" To: dev@couchdb.apache.org Message-ID: <1967004065.920.1346062507505.JavaMail.jiratomcat@arcas> Subject: [jira] [Created] (COUCHDB-1527) Embedded variables within strings for HTTP Rewrite Handler MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Marcos Zanona created COUCHDB-1527: -------------------------------------- Summary: Embedded variables within strings for HTTP Rewrite Handler Key: COUCHDB-1527 URL: https://issues.apache.org/jira/browse/COUCHDB-1527 Project: CouchDB Issue Type: New Feature Components: HTTP Interface Affects Versions: 1.2 Reporter: Marcos Zanona Priority: Minor When writing a rewrite condition it is not possible to replicate the same behaviour as for a view query like: _design/app/_view/search?startkey="word"&endkey="word\ufff0" through rewrites it should be possible to achieve it with: _design/app/_rewrite/search/word { from: "search/:q", to: "_view/search", method: "GET", query: { startkey: ":q", endkey: ":q\ufff0" } } although within the `endkey`, `:q` never evaluates because it's true form is `:q\ufff0` I would suggest a ruby or mustache-like evaluation for this so we could perform such queries without problem like endkey: "{{:q}}\ufff0" or endkey: "#{:q}\ufff0" this is fair in the sense it's possible to achieve the same result available manually but through automated http rewriting. Thanks -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira