Return-Path: Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: (qmail 56461 invoked from network); 30 Oct 2009 17:55:58 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 30 Oct 2009 17:55:58 -0000 Received: (qmail 5364 invoked by uid 500); 30 Oct 2009 17:55:57 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 5287 invoked by uid 500); 30 Oct 2009 17:55:57 -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 5277 invoked by uid 99); 30 Oct 2009 17:55:57 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 30 Oct 2009 17:55:57 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of zachary.zolton@gmail.com designates 209.85.219.205 as permitted sender) Received: from [209.85.219.205] (HELO mail-ew0-f205.google.com) (209.85.219.205) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 30 Oct 2009 17:55:49 +0000 Received: by ewy1 with SMTP id 1so3124568ewy.3 for ; Fri, 30 Oct 2009 10:55:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=h7gG+bdHIhYmE5W2kzFLncaIw50xY2REcrHzohbXzpk=; b=wmquT07xeapCXnNxwNEojS1ZKiIgqUy2sAAW4qN4HlN7Tzvw389OhAZvuQ7Yi8ojlr nGU9oRVFBFY7Z0gTDh5Ly1grLJqgJyUejv9DhgZuTTm2nllBCKOpV54b7vK8TYkMqrAk pRxv/MDGRcUnAh/3sm8y9Wtpt66rYnxntIxzU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=F9/KQcLuNahGjvMpLWW6rXPr4923OENjjNnr15/ZXTH7CcMxj8MCZ1isg4dFo1TZO4 1MTebPMMN+lyGBeCeLeyRYxWD+7VTwmMr29JHo99LMDbYPtmh6tmQp2J98qfuuMXB20+ 0za11ocUpcjaLbbrH9mQJMgCS19GtSm6SKccs= MIME-Version: 1.0 Received: by 10.216.85.78 with SMTP id t56mr732477wee.126.1256925329220; Fri, 30 Oct 2009 10:55:29 -0700 (PDT) In-Reply-To: <243703.63807.qm@web52207.mail.re2.yahoo.com> References: <243703.63807.qm@web52207.mail.re2.yahoo.com> Date: Fri, 30 Oct 2009 12:55:29 -0500 Message-ID: Subject: Re: CouchDB equivalent dynamic SQL From: Zachary Zolton To: user@couchdb.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org CouchDB-Lucene could be used here, but you have to taken into account that Lucene will treat the numeric values as strings. Cheers, Zach On Friday, October 30, 2009, Duy Nguyen wrote: > Hi guys, > I have a troublesome sql query that needs to translate to couchDB map/red= uce > SELECT * FROM PRODUCTSWHERE [ PRICE ]=A0AND [TYPE]' > Please note that Price and Type are dynamically generated depend on user = inputs. ( i.e=A0TYPEcan be 100 <=A0PRICE=A0< 1000, or 1 <=A0PRICE=A0< 100, = or 1000 <=A0PRICE=A0< 10000.=A0TYPE=A0could be 'computer' , 'tv' etc..) > I can not do dynamically query on the fly with CouchDB. what is the best = way to solve this problem ? > > >