From user-return-11681-apmail-couchdb-user-archive=couchdb.apache.org@couchdb.apache.org Sun Jul 25 18:09:01 2010 Return-Path: Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: (qmail 8268 invoked from network); 25 Jul 2010 18:09:01 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 25 Jul 2010 18:09:01 -0000 Received: (qmail 28202 invoked by uid 500); 25 Jul 2010 18:09:00 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 28149 invoked by uid 500); 25 Jul 2010 18:08: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 28141 invoked by uid 99); 25 Jul 2010 18:08:59 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 25 Jul 2010 18:08:59 +0000 X-ASF-Spam-Status: No, hits=0.7 required=10.0 tests=RCVD_IN_DNSWL_NONE,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [209.85.213.180] (HELO mail-yx0-f180.google.com) (209.85.213.180) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 25 Jul 2010 18:08:52 +0000 Received: by yxm8 with SMTP id 8so6277371yxm.11 for ; Sun, 25 Jul 2010 11:08:30 -0700 (PDT) MIME-Version: 1.0 Received: by 10.151.77.8 with SMTP id e8mr7995621ybl.224.1280081310633; Sun, 25 Jul 2010 11:08:30 -0700 (PDT) Received: by 10.151.8.14 with HTTP; Sun, 25 Jul 2010 11:08:30 -0700 (PDT) In-Reply-To: <100996.42203.qm@web29217.mail.ird.yahoo.com> References: <100996.42203.qm@web29217.mail.ird.yahoo.com> Date: Sun, 25 Jul 2010 11:08:30 -0700 Message-ID: Subject: Re: My first few days of using couchdb From: Kenneth Tyler To: user@couchdb.apache.org Content-Type: text/plain; charset=ISO-8859-1 > For example:- > > [ "holiday","camping"] > or > ["holiday","skiing"] > > I can easily create a view that allows me to search the tags with ?key="holiday" > however I cannot work out how to select photos which contains both tag1 and > tag2. robin, one thing to consider is how you expect the tags to be used: skiing + holiday may mean the same thing as "skiing holiday". In which case you really have 2 tags "skiing holiday" and "skiing" or perhaps somday you want all your holiday pictures, regardless, so you have 3 tags "skiing holiday" "skiing" and "holiday". this is a variation of chris's suggestion that you emit multiple tags... but i'm putting it on the other end, saying enter multiple tags. If you enter single tags... then emitting their combinations mechanically means that they multiply quite rapidly. However, if you enter the meaningful combinations only, then you can search on them and you do not have to store all the non-meaningful combinations if you have 15 tags on a picture, i'm sure that all the possible combinations of the fifteen tags are not going to be meaningful. we are used to just entering the 15 tags and then searching for ad hoc combinations of them because that is the way a SQL dataabbase works. It thinks nothing of all the possible cominations. So we are used to taking a shortcut when we "tag" the pictures. if i'm tagging a picture i took on "sky line drive", then searching for "sky", "line" or "drive" doesn't make much sense. what this might mean is a new interface for entering tags... that indicates which tags could be grouped together...we are used to seeing tags as a list because sql databases store and manipulate lists... ken tyler