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 620F0D4A0 for ; Fri, 26 Oct 2012 19:49:01 +0000 (UTC) Received: (qmail 26341 invoked by uid 500); 26 Oct 2012 19:48:59 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 26259 invoked by uid 500); 26 Oct 2012 19:48:59 -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 26251 invoked by uid 99); 26 Oct 2012 19:48:59 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 26 Oct 2012 19:48:59 +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 dicky.dicky@gmail.com designates 209.85.220.180 as permitted sender) Received: from [209.85.220.180] (HELO mail-vc0-f180.google.com) (209.85.220.180) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 26 Oct 2012 19:48:52 +0000 Received: by mail-vc0-f180.google.com with SMTP id fl13so3201838vcb.11 for ; Fri, 26 Oct 2012 12:48:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:date:x-google-sender-auth:message-id:subject :from:to:content-type; bh=sARgva+gB/M7b+ittM/JpujKc9eqnxR20v0sjP2xEDw=; b=K8dJq9dHFeHgMYYS2bItXr8VZZ9zfwnhlnjiDDMWAckZDDlUE4yLVgjHCcwD/AEiaG L5Cm7HA844l0J8rzyFfMJEQsRbKEAS0lLdgxr243uVdXUpvYo8Bxusuwdh5nTQm837p8 AjeoEBgnFPrUaruNBRVLzNQkx14Y4a6bVtY+sM7xMjs1zNAc2GPtJdhR5jAiR7PJZtWN j5NXFIEKulxDT1lmTprxDLf2R1laJI6dafPL7V4i6UgZ9dsakCZSdj3rBq7p/MabbvnS HYbKjcjhoH7xyQU/PIQWBUCWoKp/iZ5pBnaSluqUlyL1j6bpXfqGuBA4ntwVHLfNKbQO XcYg== MIME-Version: 1.0 Received: by 10.58.162.130 with SMTP id ya2mr42897600veb.2.1351280911231; Fri, 26 Oct 2012 12:48:31 -0700 (PDT) Sender: dicky.dicky@gmail.com Received: by 10.58.117.36 with HTTP; Fri, 26 Oct 2012 12:48:31 -0700 (PDT) Date: Fri, 26 Oct 2012 21:48:31 +0200 X-Google-Sender-Auth: Gc0YnfnypxIQ5LdVtBxqbC4h8nE Message-ID: Subject: how to fetch the newes document of every type? From: Dirk Heilig To: user@couchdb.apache.org Content-Type: text/plain; charset=UTF-8 X-Virus-Checked: Checked by ClamAV on apache.org Hi, i've got a problem: i have a lot documents, lets say "news" some are sports-news, some are world-news some are localnews. local news only comes once per month or so, sport news are twice weekly and world news daily. in short a news document looks like: type:news news_type:world created:2012-10-62 21:46:30 text:Dirk Heilig wrote to the couchdb mailinglist what i need is a view, and the magic wat to query this view to get the lastest news of any kind, how do i manage this? thanks dirk