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 0FB3F97E9 for ; Tue, 27 Mar 2012 17:29:57 +0000 (UTC) Received: (qmail 97369 invoked by uid 500); 27 Mar 2012 17:29:55 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 97312 invoked by uid 500); 27 Mar 2012 17:29:55 -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 97304 invoked by uid 99); 27 Mar 2012 17:29:55 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 27 Mar 2012 17:29:55 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of nicholas.evans@gmail.com designates 209.85.216.47 as permitted sender) Received: from [209.85.216.47] (HELO mail-qa0-f47.google.com) (209.85.216.47) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 27 Mar 2012 17:29:49 +0000 Received: by qatm19 with SMTP id m19so409879qat.6 for ; Tue, 27 Mar 2012 10:29:28 -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:from:date :x-google-sender-auth:message-id:subject:to:content-type; bh=NNwftDsreRWC679RcWuq41RQCvd+IFQAEVegW5KPwZA=; b=LSYmKcgimOWSPnmExZM1jfO8oMzuwfFA0RRnOYhUWU9ZMvp30kkmV3jSqWi+RuLQPy 0K9sLiYcT1vJNGcnsM8NAsPIEvmvUM6Dk1cdk2A/xZUOxD1IDgmOkBerX3lf1MwYDPT9 xQ2zm4ueRbzkRVaowaHuZI7o4CUJyBX+LL8evBWrgcXME42jcRAWItpjeCjp/3ITXvLU YfI3NWWQcIpzjsMREbB/VobdrqLLi5DAmcwBVjHv9bv22pDD6ORYVTmF2G0sWiXDFLfz P8vKazEInhW0KB/0LsogiA0JRYVdmYTutr62CPeOb6B5OMA1LYOL7WFQE7LGcqh06IP9 nHPA== Received: by 10.229.136.138 with SMTP id r10mr10221458qct.130.1332869368122; Tue, 27 Mar 2012 10:29:28 -0700 (PDT) MIME-Version: 1.0 Sender: nicholas.evans@gmail.com Received: by 10.229.211.20 with HTTP; Tue, 27 Mar 2012 10:28:47 -0700 (PDT) In-Reply-To: References: From: "nicholas a. evans" Date: Tue, 27 Mar 2012 13:28:47 -0400 X-Google-Sender-Auth: MLxomxcvcroMo9BNrHjG-5qHsuE Message-ID: Subject: Re: Sorting CouchDB data using couch-lucene To: user@couchdb.apache.org Content-Type: text/plain; charset=ISO-8859-1 On Tue, Mar 27, 2012 at 1:14 PM, Robert Newson wrote: > cross-posting is generally bad form as it splits the conversation. If > I answer here or on SO, someone potentially loses out. Good point. Sorry about that. > That said, couchdb-lucene is an independent index, sourced from the > database. As such, it has no access to the reduced values nor does it > have an equivalent feature. Where did you see that suggestion? I saw that suggestion at http://stackoverflow.com/a/2821476/110681 I think the idea wasn't so much that couchdb-lucene would read from the view as much that couchdb-lucene would give me a completely different way to approach the problem. Is there some way for lucene to index the data so that it could give me ranked results? E.g. if every document has a doc.sender, is there some way to store the senders in lucene and then ask for a ranking of senders with their counts? I don't know enough about lucene or full-text indexing in general, so I hoped and assumed there might be some way to twist the lucene index to do my bidding. :) If lucene can't help out and no one knows of an open source chained map-reduce views implementation, then the polyglot persistence approach sounds best to me, since redis zsets are perfect for this particular task. Thanks. -- Nick