Return-Path: Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: (qmail 75717 invoked from network); 3 Jan 2011 09:38:19 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 3 Jan 2011 09:38:19 -0000 Received: (qmail 50883 invoked by uid 500); 3 Jan 2011 09:38:17 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 50656 invoked by uid 500); 3 Jan 2011 09:38:17 -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 Delivered-To: moderator for java-user@lucene.apache.org Received: (qmail 45855 invoked by uid 99); 3 Jan 2011 09:31:55 -0000 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=SPF_NEUTRAL,URI_HEX X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Date: Mon, 3 Jan 2011 01:31:26 -0800 (PST) From: Amr ElAdawy To: java-user@lucene.apache.org Message-ID: <1294047086752-2183784.post@n3.nabble.com> In-Reply-To: <996817.46891.qm@web121702.mail.ne1.yahoo.com> References: <1294038939049-2183420.post@n3.nabble.com> <996817.46891.qm@web121702.mail.ne1.yahoo.com> Subject: Re: Search Score percentage, Should not be relative to the highest score MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Hi iorixxx, Thanks a lot for your reply I had read the link and I understand the concern, however, the normalization is happening inside lucene. Where the normalizing value is the inverse of the maxScore. I can alter the code to leave the original score, however it is a business requirements to view the matching percentage. Also, the absolute score means nothing because we wont know the exact matching score. I am thinking of alter the core to make the normalization relative to the number of terms, considering that the each term will score 1, so the exact match should score 3 if there are 3 terms. The problem for that, I dont know how to get the number of Clauses from Query, nor the number of Terms. Also, some exact matching results scored more than 3 !! any ideas? -- View this message in context: http://lucene.472066.n3.nabble.com/Search-Score-percentage-Should-not-be-relative-to-the-highest-score-tp2183420p2183784.html 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