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 4452110B81 for ; Thu, 17 Oct 2013 11:48:24 +0000 (UTC) Received: (qmail 23956 invoked by uid 500); 17 Oct 2013 11:48:21 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 23809 invoked by uid 500); 17 Oct 2013 11:48:11 -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 23800 invoked by uid 99); 17 Oct 2013 11:48:08 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 17 Oct 2013 11:48:08 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of suraj.kumar@inmobi.com designates 209.85.223.171 as permitted sender) Received: from [209.85.223.171] (HELO mail-ie0-f171.google.com) (209.85.223.171) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 17 Oct 2013 11:48:02 +0000 Received: by mail-ie0-f171.google.com with SMTP id tp5so3665959ieb.16 for ; Thu, 17 Oct 2013 04:47:40 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type; bh=YnQy5JmlstM6EVmFsKNGilXo5Ribo8yIFMdAWlm/pss=; b=I1P4zikZppG5m4h6ftzHk+vZ5lM0P7PBuhWz2yil89U4pBagMeYZJGw8oeVk2dry0F WwJ9vB66WTLrOfFMiNy6hlWJ7KsNV4G0p8qwpR53GRsdwVBtRz3LsYeGGu/9giVFc5wA 2JVIeRgO3yfJOGw2HhrReaC7aKcUrLPNdERrsbXPdENswGiu/iemzgEjvSaMHKxtq/jl a24HIpDyyV6gpKnXnXKJo8ajAkKRa56QAXry16w6kYTKme8tCt6I4RufufZvVGX6tQ/c KRSIqE3t3Bd1vMSWlPIRc87ANuLwtP3+bMFYtwUW91yb2KPTXcc6PcOQ4xqDG3qG+iaS 49SA== X-Gm-Message-State: ALoCoQk4FsU9zMkGwz+n8xm8zySG3ztp9SG6FBpX+l1gZop8jdX1CVq+zWLvcmyIfhM6RNUtjDir+1acU7atw2vzEysDwkNH90047TvL4YQbtPAVrleN5o0= MIME-Version: 1.0 X-Received: by 10.50.97.35 with SMTP id dx3mr25509587igb.55.1382010460503; Thu, 17 Oct 2013 04:47:40 -0700 (PDT) Received: by 10.64.224.244 with HTTP; Thu, 17 Oct 2013 04:47:40 -0700 (PDT) In-Reply-To: <9CB333EB-DFF9-46D1-AFF4-9CE7C6D264A9@couchbase.com> References: <9CB333EB-DFF9-46D1-AFF4-9CE7C6D264A9@couchbase.com> Date: Thu, 17 Oct 2013 17:17:40 +0530 Message-ID: Subject: Re: Sub string search (and complex queries) approach review needed From: Suraj Kumar To: user@couchdb.apache.org Content-Type: multipart/alternative; boundary=e89a8ffbae759318ec04e8ee629a X-Virus-Checked: Checked by ClamAV on apache.org --e89a8ffbae759318ec04e8ee629a Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable lucene has been a pain for us thus far to setup. I'm now wondering if it would be a simpler idea to build an elaborate 'expression based doc filtering' List function that outputs json of documents that match given 'expression' query rule. It's accompanying view will essentially index the entire document. Perhaps, it would even output complex other things in the future - like sum/etc., Yes it is O(N) search with heavy evaluation - but this is OK for now. We can also build a program that would generate a static map function with custom name to do 'saved search'. On Tue, Oct 15, 2013 at 8:21 PM, Jens Alfke wrote: > > On Oct 15, 2013, at 6:53 AM, Suraj Kumar wrote: > > > I'd like to enable my users to do sub string search of arbitrary > attributes > > of documents on-the-fly. Luckily most of the attributes of the document= s > > are like 'enum' or a finite / small range of values. > > Have you considered CouchDB-Lucene? It provides full-text search. Somewha= t > overkill for your needs, as I understand them, but definitely easier to u= se > than implementing a bunch of code as you=92ve described. > > =97Jens --=20 An Onion is the Onion skin and the Onion under the skin until the Onion Skin without any Onion underneath. --=20 _____________________________________________________________ The information contained in this communication is intended solely for the= =20 use of the individual or entity to whom it is addressed and others=20 authorized to receive it. It may contain confidential or legally privileged= =20 information. If you are not the intended recipient you are hereby notified= =20 that any disclosure, copying, distribution or taking any action in reliance= =20 on the contents of this information is strictly prohibited and may be=20 unlawful. If you have received this communication in error, please notify= =20 us immediately by responding to this email and then delete it from your=20 system. The firm is neither liable for the proper and complete transmission= =20 of the information contained in this communication nor for any delay in its= =20 receipt. --e89a8ffbae759318ec04e8ee629a--