Return-Path: Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: (qmail 67622 invoked from network); 14 May 2009 14:35:16 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 14 May 2009 14:35:16 -0000 Received: (qmail 64692 invoked by uid 500); 14 May 2009 14:35:14 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 64623 invoked by uid 500); 14 May 2009 14:35:14 -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 64613 invoked by uid 99); 14 May 2009 14:35:14 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 14 May 2009 14:35:14 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of erickerickson@gmail.com designates 209.85.200.175 as permitted sender) Received: from [209.85.200.175] (HELO wf-out-1314.google.com) (209.85.200.175) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 14 May 2009 14:35:04 +0000 Received: by wf-out-1314.google.com with SMTP id 24so731102wfg.20 for ; Thu, 14 May 2009 07:34:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type; bh=4H5SE8zCSAx4i+PfGUAyRDHpEzvbekitluD+HPrqWko=; b=qPF3Pjpk0vmtzFsIs9IharG7E3234D87bK92/AbtkE3B6ktKjPPfi6UnZF3wMigILv aD7g7c093hu6BMNbnj8MbGPS0SWznQubfRD9Bt54If069yfDpq+CwOsClCvgwYggIIzQ shK7s4uOb/wD/tU/HPRbY3+dxlLkOmK6BIgkE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=Av3YCsp03JjqO9GXUIf+BBbPSgT8aPIZY83l2BFRaldEsXMvJRARmg2x9J38yqPZ1L yPAIQdKyVqLyvHmOTQqLkX6+IwHEspLrE0C7tjTxxFrhClTUiG+D5Wd06/F+mYX8UsHK 8FaIFS4RvhQiV0UXndEho/XNrSvohL76FtcyA= MIME-Version: 1.0 Received: by 10.220.81.65 with SMTP id w1mr3539091vck.48.1242311682751; Thu, 14 May 2009 07:34:42 -0700 (PDT) In-Reply-To: References: <359a92830905140535y3425c344jdfdd8306be5fd54c@mail.gmail.com> Date: Thu, 14 May 2009 10:34:42 -0400 Message-ID: <359a92830905140734s71f7943fuc237b02da9995c01@mail.gmail.com> Subject: Re: Getting a score of a specific document From: Erick Erickson To: java-user@lucene.apache.org Content-Type: multipart/alternative; boundary=0016e646989a8cfe230469e03af5 X-Virus-Checked: Checked by ClamAV on apache.org --0016e646989a8cfe230469e03af5 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Hmmm, come to think of it, if you pass the Filter to the search I*think* you don't get scores for that clause, but you may want to check it out... So I think you should think about implementing a HitCollector and collect only the documents you care about. This is really very little extra work since all the documents have to be evaluated anyway. I'm not sure what you mean by statistics for the whole index. I suspect you're wondering if the scores reflect all the documents. But you don't care because scores are not relevant between different queries, and if they are calculated only within the query you're running, all the documents returned have scores that rank them relative to each other. Best Erick On Thu, May 14, 2009 at 9:16 AM, liat oren wrote: > Yes, I have a pre-defined list of documents that I care about. > Then I can do the search on these, but it will take the statictics of the > whole index, right? > > > > > 2009/5/14 Erick Erickson > > > I don't know if I'm understanding what you want, but if you havea > > pre-defined list of documents, couldn't you form a Filter? Then > > your results would only be the documents you care about. > > > > If this is irrelevant, perhaps you could explain a bit more about > > the problem you're trying to solve. > > > > Best > > Erick > > > > On Thu, May 14, 2009 at 5:03 AM, liat oren wrote: > > > > > Hi, > > > > > > I have a big index and I want to get for a specific search only the > > grades > > > of a list of documents. > > > Is there a better way to get this score than looping on all the > reasults > > > set? > > > > > > Thanks, > > > Liat > > > > > > --0016e646989a8cfe230469e03af5--