Return-Path: Delivered-To: apmail-lucene-java-dev-archive@www.apache.org Received: (qmail 66023 invoked from network); 2 Mar 2007 12:24:17 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 2 Mar 2007 12:24:17 -0000 Received: (qmail 55939 invoked by uid 500); 2 Mar 2007 12:24:23 -0000 Delivered-To: apmail-lucene-java-dev-archive@lucene.apache.org Received: (qmail 55862 invoked by uid 500); 2 Mar 2007 12:24:22 -0000 Mailing-List: contact java-dev-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: java-dev@lucene.apache.org Delivered-To: mailing list java-dev@lucene.apache.org Received: (qmail 55851 invoked by uid 99); 2 Mar 2007 12:24:22 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 02 Mar 2007 04:24:22 -0800 X-ASF-Spam-Status: No, hits=0.5 required=10.0 tests=FORGED_HOTMAIL_RCVD2,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of lists@nabble.com designates 72.21.53.35 as permitted sender) Received: from [72.21.53.35] (HELO talk.nabble.com) (72.21.53.35) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 02 Mar 2007 04:24:10 -0800 Received: from [72.21.53.38] (helo=jubjub.nabble.com) by talk.nabble.com with esmtp (Exim 4.50) id 1HN6nd-0004Vm-J2 for java-dev@lucene.apache.org; Fri, 02 Mar 2007 04:23:49 -0800 Message-ID: <9268663.post@talk.nabble.com> Date: Fri, 2 Mar 2007 04:23:49 -0800 (PST) From: jreeman To: java-dev@lucene.apache.org Subject: Re: [jira] Question about hits scores In-Reply-To: <9267212.post@talk.nabble.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: mimounl@hotmail.com References: <9267111.post@talk.nabble.com> <9267212.post@talk.nabble.com> X-Virus-Checked: Checked by ClamAV on apache.org I have been overwriting the Similarity class of the searcher like this : DefaultSimilarity similarity = new DefaultSimilarity(); similarity.idf(0, 1); // idf is set to 1 whithis line of code searcher.setSimilarity(similarity); hits=searcher.search(l_query); But it does not modify the hit score. Do you have any suggestions ? jreeman wrote: > > Ok the score depends on the frequence of the hit for each metadata value. > > My question is now how to make the score independant from the frequency of > a result ? > > > > jreeman wrote: >> >> Hello, >> >> here is the query I am sending to lucene : >> >> +(document_type:type0one +document_type:type0twenty0one) +state:live0 >> >> document_type and state are meta-datas. 0 is used as a separator in >> "type0one " and "type0twenty0one". >> >> I was thinking that the hits scores would be all set to 100% but it is >> not the case : >> >> I have this score : >> >> 1 hit typetype0one, score 100% >> 1 hit type0twenty0one, score 80% >> 1 hit type0twenty0one, score 80% >> >> I am using a standart analyzer with no stop words. >> >> I don't understand why I don't have all hits with 100% for score. >> >> Do you have some explanation ? >> >> Thanks in advance. >> > > -- View this message in context: http://www.nabble.com/Question-about-hits-scores-tf3332761.html#a9268663 Sent from the Lucene - Java Developer mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org For additional commands, e-mail: java-dev-help@lucene.apache.org