Return-Path: Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: (qmail 94246 invoked from network); 20 Oct 2008 13:12:23 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 20 Oct 2008 13:12:23 -0000 Received: (qmail 7491 invoked by uid 500); 20 Oct 2008 13:12:19 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 7457 invoked by uid 500); 20 Oct 2008 13:12:18 -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 7096 invoked by uid 99); 20 Oct 2008 13:12:17 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 20 Oct 2008 06:12:17 -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-a20.g.dreamhost.com) (208.97.132.177) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 20 Oct 2008 13:11:05 +0000 Received: from [192.168.0.3] (adsl-074-229-189-244.sip.rmo.bellsouth.net [74.229.189.244]) by spunkymail-a20.g.dreamhost.com (Postfix) with ESMTP id 9EC31E24BD for ; Mon, 20 Oct 2008 06:11:40 -0700 (PDT) Message-Id: From: Grant Ingersoll To: java-user@lucene.apache.org In-Reply-To: <574b5e9b0810200240s41252ba6pc5c8b5aa6d76e7c4@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed; delsp=yes Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Apple Message framework v929.2) Subject: Re: About TermQuery Date: Mon, 20 Oct 2008 09:11:38 -0400 References: <574b5e9b0810200240s41252ba6pc5c8b5aa6d76e7c4@mail.gmail.com> X-Mailer: Apple Mail (2.929.2) X-Virus-Checked: Checked by ClamAV on apache.org You should be able to get the clauses from the BooleanQuery: = http://lucene.apache.org/java/2_4_0/api/core/org/apache/lucene/search/Bool= eanQuery.html#clauses() And, from there, you can do instanceof to determine the query type, =20 eventually getting to a TermQuery, where you can do: = http://lucene.apache.org/java/2_4_0/api/core/org/apache/lucene/search/Quer= y.html#getBoost() Every Query has a boost, thus, you can call Query.getBoost(). -Grant On Oct 20, 2008, at 5:40 AM, Carlos Rodr=EDguez Fern=E1ndez wrote: > How can I get the boost value of the subqueries "TermQuery" from a > BooleanQuery? > In the Similarity ecuation > = http://lucene.apache.org/java/2_1_0/api/org/apache/lucene/search/Similarit= y.html > I don't know how I can get the t.getBoost() value. > > Could you help me? > > I need it because I need to recalculate the scores of the documents =20= > which > were got from differents crawls. MultiReader is not the solution for =20= > me :). > > Thanks! > Carlos -------------------------- Grant Ingersoll Lucene Boot Camp Training Nov. 3-4, 2008, ApacheCon US New Orleans. http://www.lucenebootcamp.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