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 EFA037EB6 for ; Sun, 21 Aug 2011 08:59:08 +0000 (UTC) Received: (qmail 59761 invoked by uid 500); 21 Aug 2011 08:59:06 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 59354 invoked by uid 500); 21 Aug 2011 08:58:49 -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 59344 invoked by uid 99); 21 Aug 2011 08:58:41 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 21 Aug 2011 08:58:41 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of novojilov.ilya@gmail.com designates 209.85.218.52 as permitted sender) Received: from [209.85.218.52] (HELO mail-yi0-f52.google.com) (209.85.218.52) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 21 Aug 2011 08:58:34 +0000 Received: by yie13 with SMTP id 13so4396181yie.11 for ; Sun, 21 Aug 2011 01:58:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:from:date:message-id:subject:to:content-type; bh=WCPtUii9H8L3VeI/aW5k03YwWlZPdBRznIGXt4K/dpo=; b=A4dGFSIhiWb+Nm84sQxfeuhqBtrxMFS+CcpHzwUtcpid8PFgAoAFOij1KEBPr7SDwT Z2oKHdMBAtZayH+U0ZOJh+YefTULbfxyhSrmQrjLgGt4GmTavs9dOUIYLxu1gaXjyWNq ZeZnLCDoFhwOO72gRfzD3Lx4DVesPrh6gLkPo= Received: by 10.151.46.17 with SMTP id y17mr466199ybj.312.1313917094122; Sun, 21 Aug 2011 01:58:14 -0700 (PDT) MIME-Version: 1.0 Received: by 10.150.212.9 with HTTP; Sun, 21 Aug 2011 01:57:54 -0700 (PDT) From: Ilya Novojilov Date: Sun, 21 Aug 2011 11:57:54 +0300 Message-ID: Subject: getting related documents To: user@couchdb.apache.org Content-Type: text/plain; charset=UTF-8 He||o all I understand it's a very common request, but I couldn't find a solution. Say documents are: { title:"doc 1", body:"body", tags:["tag1","tag2","tag3"] } another thing is that Tags have importance value. So I want to get documents that have tag1,tag2 adn tag3 If there is no such docs - return those with tag1 and tag2 etc.