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 DE13010B6C for ; Wed, 17 Jul 2013 18:33:05 +0000 (UTC) Received: (qmail 15676 invoked by uid 500); 17 Jul 2013 18:33:04 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 15204 invoked by uid 500); 17 Jul 2013 18:33:03 -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 15195 invoked by uid 99); 17 Jul 2013 18:33:02 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 17 Jul 2013 18:33:02 +0000 X-ASF-Spam-Status: No, hits=0.0 required=5.0 tests= X-Spam-Check-By: apache.org Received-SPF: error (athena.apache.org: local policy) Received: from [198.235.201.2] (HELO mx-2.northwestel.net) (198.235.201.2) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 17 Jul 2013 18:32:58 +0000 X-ASG-Debug-ID: 1374085934-06658910751ec720001-z14J5S Received: from [192.168.1.110] ([199.247.191.174]) by mx-2.northwestel.net with ESMTP id DooD0D2xPWOFXC9Y for ; Wed, 17 Jul 2013 11:32:14 -0700 (PDT) X-Barracuda-Envelope-From: stephan@bardubitzki.com X-Barracuda-Apparent-Source-IP: 199.247.191.174 Message-ID: <51E6E32E.4070903@bardubitzki.com> Date: Wed, 17 Jul 2013 11:32:14 -0700 From: Stephan Bardubitzki User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130623 Thunderbird/17.0.7 MIME-Version: 1.0 To: user@couchdb.apache.org Subject: Re: View Collation References: <51E6DFAD.4040009@bardubitzki.com> X-ASG-Orig-Subj: Re: View Collation In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Barracuda-Connect: UNKNOWN[199.247.191.174] X-Barracuda-Start-Time: 1374085934 X-Barracuda-URL: http://198.235.201.2:8000/cgi-mod/mark.cgi X-Virus-Scanned: by bsmtpd at northwestel.net X-Barracuda-BRTS-Status: 1 X-Barracuda-Spam-Score: 0.00 X-Barracuda-Spam-Status: No, SCORE=0.00 using per-user scores of TAG_LEVEL=1000.0 QUARANTINE_LEVEL=1000.0 KILL_LEVEL=6.8 tests= X-Barracuda-Spam-Report: Code version 3.2, rules version 3.2.2.137047 Rule breakdown below pts rule name description ---- ---------------------- -------------------------------------------------- X-Virus-Checked: Checked by ClamAV on apache.org The third element in the startkey is the number property to be sorted. Here is my map function: function(doc) { if (doc.kml_id && doc.marker && doc.language) { for (language in doc['language']) { var o = {}; o.description = doc.language[language]; o.gps = doc.gps; emit([language, doc.kml_id, doc.marker], o); } } } On 13-07-17 11:21 AM, Robert Newson wrote: > Use start key of ["fr",id] > On 17 Jul 2013 19:18, "Stephan Bardubitzki" wrote: > >> In my docs I have a Number property starting at 0. My start/end key looks >> like this: >> >> startkey: ["fr", id, 0]. endkey: ["fr", id, {}] >> >> to sort the response by this property. It seems to work well, however, the >> doc with the property value=0 is omitted. >> >> I presume the view collation for numbers is starting at 1? >> >> >> >> >> >> >> > -------------------------------- > Spam/Virus scanning by CanIt Pro > > For more information see > http://www.kgbinternet.com/SpamFilter.htm > > To control your spam filter, log in at > http://filter.kgbinternet.com >