Return-Path: Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: (qmail 64899 invoked from network); 14 Aug 2007 02:35:24 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 14 Aug 2007 02:35:24 -0000 Received: (qmail 82860 invoked by uid 500); 14 Aug 2007 02:35:15 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 82824 invoked by uid 500); 14 Aug 2007 02:35:15 -0000 Mailing-List: contact java-user-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: java-user@lucene.apache.org Delivered-To: mailing list java-user@lucene.apache.org Received: (qmail 82813 invoked by uid 99); 14 Aug 2007 02:35:15 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 13 Aug 2007 19:35:15 -0700 X-ASF-Spam-Status: No, hits=1.2 required=10.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [208.97.132.66] (HELO spunkymail-a5.g.dreamhost.com) (208.97.132.66) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 14 Aug 2007 02:35:20 +0000 Received: from [192.168.0.3] (adsl-074-229-189-244.sip.rmo.bellsouth.net [74.229.189.244]) by spunkymail-a5.g.dreamhost.com (Postfix) with ESMTP id 6BBAB14D6B1 for ; Mon, 13 Aug 2007 19:34:46 -0700 (PDT) Mime-Version: 1.0 (Apple Message framework v752.3) In-Reply-To: References: Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: Content-Transfer-Encoding: 7bit From: Grant Ingersoll Subject: Re: Rank based on lists. Date: Mon, 13 Aug 2007 22:34:31 -0400 To: java-user@lucene.apache.org X-Mailer: Apple Mail (2.752.3) X-Virus-Checked: Checked by ClamAV on apache.org Have a look at the DisjunctionMaxQuery class. I don't think it is exactly what you are looking for, but it might give you some ideas on how to proceed, as it sounds similar to what you are trying to do. Hope this helps, Grant On Aug 13, 2007, at 2:20 PM, Walt Stoneburner wrote: > Here's a scenario I just ran into, though I don't know how to make > Lucene do it (or even if it can). > > I have two lists; to keep things simply lets assume (A B C D E F G) > and (X Y). > > I want to form a query so that when matches appear from both lists, > results rank higher, than if many elements matched from just one. > > That is, a document that matches a many terms of list one, such as A B > C D E F, ranks lower than a document that matches just one term from > each list, A X. > > It is not the case that the second list weights more. It's just as > equal as the first. > > So, for instance, a match of X Y, all of list two, would rank less > than a match of A X, which had hits in both. > > > Is this even possible, or does Lucene not have facilities for lists, > sets, groups, or whatever makes sense to call them? > > -Walt Stoneburner, wls@wwco.com > http://www.wwco.com/~wls/blog/ > > --------------------------------------------------------------------- > To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org > For additional commands, e-mail: java-user-help@lucene.apache.org > -------------------------- Grant Ingersoll http://lucene.grantingersoll.com Lucene Helpful Hints: http://wiki.apache.org/lucene-java/BasicsOfPerformance http://wiki.apache.org/lucene-java/LuceneFAQ --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org For additional commands, e-mail: java-user-help@lucene.apache.org