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 8D1A5DEC4 for ; Tue, 18 Sep 2012 05:21:49 +0000 (UTC) Received: (qmail 76392 invoked by uid 500); 18 Sep 2012 05:21:47 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 75913 invoked by uid 500); 18 Sep 2012 05:21:44 -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 75884 invoked by uid 99); 18 Sep 2012 05:21:43 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 18 Sep 2012 05:21:43 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=FSL_RCVD_USER,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of ziggythehamster@gmail.com designates 209.85.217.180 as permitted sender) Received: from [209.85.217.180] (HELO mail-lb0-f180.google.com) (209.85.217.180) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 18 Sep 2012 05:21:35 +0000 Received: by lbon10 with SMTP id n10so4399225lbo.11 for ; Mon, 17 Sep 2012 22:21:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:content-type; bh=SyqbPNjP/cv6vDMMpldJlLllktT/v71Ibk3UNyo5es0=; b=dwOOh+JxqA56uh3eyxbkFvkd5UX4ZjUgcremRrrRo20NMWuGT2Z1qLBH+YTMGMwYkb LWN6JDdiY3n93b7FeaLgI2GP7d+zvr++puEE0Id8NUxzND3Z1/4YJbU7zEPEJJTZ+buq qeSU2hD8jxvMvym5EUhYUB4T0S2mK0xR98KeYK3aTPa7q6F0yX7EwXDF3D22o1ICNEc7 IVoPXndsrzsuVbhxJ9L3QTWTqCvg0/otqJMTytVi1fw3j45ggiopmXoql5wQOoq4/Kzv 3fTPCr4UTNrC/g+gMwR5mVjfTuLIcNL9jhZ0JP9mU5KAHYe6QGL7e0sV3dpBeON3qWML UvSw== MIME-Version: 1.0 Received: by 10.152.132.168 with SMTP id ov8mr11674779lab.0.1347945675536; Mon, 17 Sep 2012 22:21:15 -0700 (PDT) Sender: ziggythehamster@gmail.com Received: by 10.112.28.66 with HTTP; Mon, 17 Sep 2012 22:21:15 -0700 (PDT) Received: by 10.112.28.66 with HTTP; Mon, 17 Sep 2012 22:21:15 -0700 (PDT) In-Reply-To: References: Date: Tue, 18 Sep 2012 00:21:15 -0500 X-Google-Sender-Auth: E0zvsf2K6qHLAqx2USKN3cNsGUQ Message-ID: Subject: Re: Wildcard search on startkey and endkey From: Keith Gable To: user@couchdb.apache.org Content-Type: multipart/alternative; boundary=f46d043085f42aba4704c9f30f87 --f46d043085f42aba4704c9f30f87 Content-Type: text/plain; charset=ISO-8859-1 CouchDB is a lot easier to understand if you think about querying views alphabetically like a card catalog. You can say "AA to BZ" but you cannot say "*A to *Z". That said, CouchDB Lucene is actually built for those kinds of queries (and more) and it is really simple to use. Try it out. On Sep 17, 2012 11:52 PM, "Pulkit Singhal" wrote: > With a compound key being spit out by a MAP as follows: > emit ( [elem1, elem2, elem3, elem4, elem5], doc); > > Is it possible to do a search using startkey and endkey in v1.2.0 where the > beginning elements could be anything? Like this: > startkey=[ {}, {}, {}, "elem4name", "elem5name" ] > > Thoughts? > --f46d043085f42aba4704c9f30f87--