ok, thanks.
At least I can stop looking my fault.

ThoMo


On Sun, Mar 31, 2013 at 3:45 PM, Benoit Chesneau <[email protected]>wrote:

> s/'/"
>
> but I just noticed you try to pass an array as key. This isn't
> supported by the rewriter yet.
>
> - benoit
>
> On Sun, Mar 31, 2013 at 3:18 PM, Thomas Mohaupt
> <[email protected]> wrote:
> > Hm, doesn't change anything
> >
> > {from: '/foo/:name', to: '_list/foo/bar', query: {reduce: 'false', keys:
> > [[1,':name'],[2,':name']]}, formats: {name: 'string'}},
> >
> > results in
> >
> >
> /couch-dev/_design/app/_list/foo/bar?reduce=false&keys=%5B%5B1%2C%22%3Aname%22%5D%2C%5B2%2C%22%3Aname%22%5D%5D&name=TA
> >
> > (couchdb 1.2.1 on OSX)
> >
> > ThoMo
> >
> > On Sun, Mar 31, 2013 at 3:02 PM, Benoit Chesneau <[email protected]
> >wrote:
> >
> >> add
> >>
> >> "formats": {
> >>   "name": "string"
> >> }
> >>
> >> it should work.
> >>
> >> - benoƮt
> >>
> >> On Sun, Mar 31, 2013 at 2:42 PM, Thomas Mohaupt
> >> <[email protected]> wrote:
> >> > Hi,
> >> >
> >> > I want to define a rewrite rule like:
> >> >
> >> > {from: '/foo/:name', to: '_list/foo/bar', query: {reduce: 'false',
> keys:
> >> > [[1,':name'],[2,':name']]}},
> >> >
> >> > But a request of
> >> >
> >> >       /couch-dev/_design/app/_rewrite/foo/TA
> >> >
> >> > is rewritten as
> >> >
> >> >      /couch-dev/_design/app/_list/foo/bar?
> >> >
> >>
> reduce=false&keys=%5B%5B1%2C%22%3Aname%22%5D%2C%5B2%2C%22%3Aname%22%5D%5D&name=TA
> >> >
> >> > which means var :name is not matched/resolved.
> >> >
> >> > Any hints?
> >> >
> >> > ThoMo
> >>
>

Reply via email to