Return-Path: Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: (qmail 42902 invoked from network); 10 Oct 2007 18:10:07 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 10 Oct 2007 18:10:07 -0000 Received: (qmail 32942 invoked by uid 500); 10 Oct 2007 18:03:36 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 32915 invoked by uid 500); 10 Oct 2007 18:03:35 -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 32903 invoked by uid 99); 10 Oct 2007 18:03:35 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 10 Oct 2007 11:03:35 -0700 X-ASF-Spam-Status: No, hits=1.2 required=10.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [208.97.132.177] (HELO spunkymail-a2.g.dreamhost.com) (208.97.132.177) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 10 Oct 2007 18:03:36 +0000 Received: from [192.168.0.3] (adsl-074-229-189-244.sip.rmo.bellsouth.net [74.229.189.244]) by spunkymail-a2.g.dreamhost.com (Postfix) with ESMTP id 4B23687F14 for ; Wed, 10 Oct 2007 11:03:15 -0700 (PDT) Mime-Version: 1.0 (Apple Message framework v752.3) In-Reply-To: <13139648.post@talk.nabble.com> References: <13139648.post@talk.nabble.com> Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: Content-Transfer-Encoding: 7bit From: Grant Ingersoll Subject: Re: Scoring a single document from a corpus based on a given query Date: Wed, 10 Oct 2007 14:03:11 -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 contrib/memory package delivered with Lucene. It contains a MemoryIndex which is designed exactly for this scenario. On Oct 10, 2007, at 12:44 PM, lucene_user wrote: > > I would like to score a single document from a corpus based on a > given query. > The formula score(q,d) is basically what I am looking for. > > Pseudo Code of Something Close to what I am looking for: > indexReader.score(query, documentId); > > The formula score(q,d) is used throughout the documentation to > describe > similarity but there does not seem to be a corresponding java method. > > I could work around the issue by applying a search filter to only > consider > the particular document I am looking for. I was hoping for a cleaner > approach. > -- > View this message in context: http://www.nabble.com/Scoring-a- > single-document-from-a-corpus-based-on-a-given-query- > tf4601980.html#a13139648 > 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 > -------------------------- Grant Ingersoll http://lucene.grantingersoll.com Lucene Boot Camp Training: ApacheCon Atlanta, Nov. 12, 2007. Sign up now! http:// www.apachecon.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