Return-Path: Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: (qmail 88238 invoked from network); 5 Sep 2007 17:02:49 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 5 Sep 2007 17:02:49 -0000 Received: (qmail 50432 invoked by uid 500); 5 Sep 2007 17:02:36 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 50393 invoked by uid 500); 5 Sep 2007 17:02:36 -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 50379 invoked by uid 99); 5 Sep 2007 17:02:36 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 05 Sep 2007 10:02:36 -0700 X-ASF-Spam-Status: No, hits=2.6 required=10.0 tests=DNS_FROM_OPENWHOIS,SPF_HELO_PASS,SPF_PASS,WHOIS_MYPRIVREG X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of lists@nabble.com designates 216.139.236.158 as permitted sender) Received: from [216.139.236.158] (HELO kuber.nabble.com) (216.139.236.158) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 05 Sep 2007 17:03:49 +0000 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1ISyGY-0005Ld-8X for java-user@lucene.apache.org; Wed, 05 Sep 2007 10:02:10 -0700 Message-ID: <12506520.post@talk.nabble.com> Date: Wed, 5 Sep 2007 10:02:10 -0700 (PDT) From: Adam Ruggles To: java-user@lucene.apache.org Subject: Re: How to boost a document based on a field in the document In-Reply-To: <359a92830709050950x6ce3196ga9cb94d0d353509@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: a.ruggles@gmail.com References: <12500483.post@talk.nabble.com> <359a92830709050935k17c01beana9642d40e6f0cd8e@mail.gmail.com> <12506195.post@talk.nabble.com> <359a92830709050950x6ce3196ga9cb94d0d353509@mail.gmail.com> X-Virus-Checked: Checked by ClamAV on apache.org Doh... Thanks. Erick Erickson wrote: > > I think you misunderstand. The buckets are NOT the votes, > they are the relevance scores from the search. So your > search returns relevance scores (raw) from, say 1 - 100. > You could collect the results in 5 buckets and sort > by vote *within* the bucket. So the user still sees > the most relevant documents at the top, but within > that most relevant quintile she sees the order > munged a bit by vote. The thread I mentioned talks > about how to accomplish this with a FieldSortedHitQueue (?) > and a HitCollector. > > Since you're massaging the sort however you want, > negative votes should be do-able. > > Best > Erick > > On 9/5/07, Adam Ruggles wrote: >> >> >> Well a sort would remove the relevance portion of the query, which I >> really >> don't want to do. I tried using the ValueSourceQuery but it doesn't >> seem >> to be able to handle negative vote values. Buckets sound interesting but >> since there is no max voting value it would be difficult to build the max >> bucket. >> >> >> Erick Erickson wrote: >> > >> > What would happen if you sorted by vote? Perhaps within ranges >> > of scores? There's a thread in the list in response to a post I >> > made about "buckets" that might be relevant.... >> > >> > Otherwise, you might think about boosting the relevant >> > parts of the document at *index* time based on the value >> > of vote.... >> > >> > Erick >> > >> > On 9/5/07, Adam Ruggles wrote: >> >> >> >> >> >> I'm trying to find a query that would boost a document based on a >> field >> >> in >> >> the document. >> >> >> >> I have a simple index with title, description, date, ... I also have a >> >> field >> >> called vote. I want items that have been voted higher to be ranked as >> >> higher in the search results. Is there a query and or filter I could >> use >> >> to >> >> accomplish this? >> >> -- >> >> View this message in context: >> >> >> http://www.nabble.com/How-to-boost-a-document-based-on-a-field-in-the-document-tf4384816.html#a12500483 >> >> Sent from the Lucene - Java Users mailing list archive at Nabble.com. >> >> >> >> >> >> --------------------------------------------------------------------- >> >> To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org >> >> For additional commands, e-mail: java-user-help@lucene.apache.org >> >> >> >> >> > >> > >> >> -- >> View this message in context: >> http://www.nabble.com/How-to-boost-a-document-based-on-a-field-in-the-document-tf4384816.html#a12506195 >> Sent from the Lucene - Java Users mailing list archive at Nabble.com. >> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org >> For additional commands, e-mail: java-user-help@lucene.apache.org >> >> > > -- View this message in context: http://www.nabble.com/How-to-boost-a-document-based-on-a-field-in-the-document-tf4384816.html#a12506520 Sent from the Lucene - Java Users mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org For additional commands, e-mail: java-user-help@lucene.apache.org