couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kenneth Tyler <...@8thfold.com>
Subject Re: Filtering of view results
Date Mon, 13 Sep 2010 21:10:09 GMT
Henrik,
Can you say more about what this document is recording, what do "branch" and
"platform" mean ? And what is the reason for storing this information ?  I
am trying to think about your document structure... and just the sample
values does not give me enough background.

Thanks

ken tyler

On Mon, Sep 13, 2010 at 12:12 AM, Henrik Skupin <hskupin@gmail.com> wrote:

> Hi,
>
> Using complex keys for my views gives me a problem with filtering the
> results. Lets say I have two filters:
>
> Branch: "All", "4.0", "3.6"
> Platform: "All", "Windows NT", "Linux", "Mac"
>
> Per default no filtering is active and all results get shown sorted by
> date.
> The key which is used for emit looks like:
>
> emit([doc.date, doc.branch, doc.platform], { ... }]);
>
> But how can I re-use the view to only show results for branch:4.0 sorted by
> date or even combined branch:4.0 & platform=Mac? I tried with
> ?key=[{},"4.0",{}] but none results get returned. Does the key option not
> allow to specify catchall values? Sadly I can't find any information about
> the usage of key.
>
> I hope that is somehow possible.
>
> Thanks,
>
> --
> Henrik Skupin
> QA Engineer
> Mozilla Corporation
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message