On Fri, Jan 29, 2010 at 10:47 PM, Zachary Zolton
<zachary.zol...@gmail.com> wrote:
> Benoit,
>
> Imagine you have a view of posts keyed by [user_name,date] but you
> want to query a nice URL using just the user_name.
>
> For example:
>
> {
>  Rest of design doc...
>
>  "rewrite": [
>    {
>      "from": ":user_name/recent_posts",
>      "to": "_view/recent_posts",
>      "method": "GET",
>      "query": {
>        "descending": true,
>        "limit": 20,
>        "startkey": [":user_name",{}],
>        "endkey": [":user_name"]
>      }
>    }
>  ]
> }
>
>
Yes it should work. Let me know if it isn't.

- benoit

Reply via email to