Return-Path: Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: (qmail 36616 invoked from network); 23 Apr 2009 21:23:23 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 23 Apr 2009 21:23:23 -0000 Received: (qmail 89035 invoked by uid 500); 23 Apr 2009 21:23:20 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 88994 invoked by uid 500); 23 Apr 2009 21:23:20 -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 88972 invoked by uid 99); 23 Apr 2009 21:23:20 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 23 Apr 2009 21:23:20 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [171.67.219.89] (HELO smtp-roam.stanford.edu) (171.67.219.89) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 23 Apr 2009 21:23:13 +0000 Received: from smtp-roam.stanford.edu (localhost.localdomain [127.0.0.1]) by localhost (Postfix) with SMTP id 515E0779A4 for ; Thu, 23 Apr 2009 14:22:51 -0700 (PDT) Received: from [10.32.8.169] (DN0a2008a9.SUNet [10.32.8.169]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: bethard) by smtp-roam.stanford.edu (Postfix) with ESMTPSA id 2009C77970 for ; Thu, 23 Apr 2009 14:22:51 -0700 (PDT) Message-ID: <49F0DC26.1030109@stanford.edu> Date: Thu, 23 Apr 2009 14:22:46 -0700 From: Steven Bethard User-Agent: Thunderbird 2.0.0.21 (Windows/20090302) MIME-Version: 1.0 To: java-user@lucene.apache.org Subject: Re: exponential boosts References: <49DFA47C.3010906@stanford.edu> <49DFE0B8.4080208@stanford.edu> <49E23210.5000209@stanford.edu> <7e536b1f0904231338u49b32551rbe9c2f89f4f58a7b@mail.gmail.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org On 4/23/2009 1:58 PM, Doron Cohen wrote: >> I think we are doing similar things, at least I am trying to implement >> document boosting with pagerank. Having issues of howto appky the scoring >> of >> specific docs without actually reindex them. I feel something should be >> done >> at query time which looks at external data but do not know howto implement >> that. Do you ? >> > > Have you considered CustomScoreQuery in o.a.l.search.function ? It should > allow > incorporating external scores. Yeah, PageRank is relatively easy to incorporate with a CustomScoreQuery and a FieldScoreQuery. Just add a field to your index containing the float value of your document's PageRank, and then specify that field when you create the FieldScoreQuery that you provide to the CustomScoreQuery constructor. If you want to keep the PageRank scores in a separate index (that's what I do currently), it's easy enough to combine two parallel indexes using a ParallelReader. Steve --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org For additional commands, e-mail: java-user-help@lucene.apache.org