Return-Path: Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: (qmail 13198 invoked from network); 5 May 2009 12:36:37 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 5 May 2009 12:36:37 -0000 Received: (qmail 84323 invoked by uid 500); 5 May 2009 12:36:34 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 84259 invoked by uid 500); 5 May 2009 12:36:34 -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 84249 invoked by uid 99); 5 May 2009 12:36:34 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 05 May 2009 12:36:34 +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 74.125.78.27 as permitted sender) Received: from [74.125.78.27] (HELO ey-out-2122.google.com) (74.125.78.27) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 05 May 2009 12:36:24 +0000 Received: by ey-out-2122.google.com with SMTP id 22so1191736eye.53 for ; Tue, 05 May 2009 05:36:04 -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=X3z1xov7cKyH1V2wI7e92Jt+W8R7dbX3+RBx7Bhwhvk=; b=WZfJMFjE/7lbQRvLoTBOAiHrM846o4BaaLPPpVSXHaUPddP+FFlEvw+xeWcV2xi670 zeUW77UDlOjtp1NaNmO1aZl9e6AE+QRcuTEM37tCu81hrqiviyhsFisA+OUwXsjQZcw/ ZVigg6Se/XuPUHOb8b9T8tEMcdk8vUJf+6eHM= 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=vqEPiZ7UIiL7IXb0BHA3qFbrkmBTOEz3Q0c3IwWkyutpgviKTI7kEdnnnlw1adNP6G IQA4WufMpXbDn3zWnJ9Kvn9ytvGA4diB92goWyhTSzWYlY4I0Y7uzJCQvdNISshq/Ndu P6xu/1ivkEOJNlFCJ1266FCIjbs0gm0z51W/w= MIME-Version: 1.0 Received: by 10.220.83.149 with SMTP id f21mr39477vcl.34.1241526963415; Tue, 05 May 2009 05:36:03 -0700 (PDT) In-Reply-To: <23384986.post@talk.nabble.com> References: <23293723.post@talk.nabble.com> <23384986.post@talk.nabble.com> Date: Tue, 5 May 2009 08:36:03 -0400 Message-ID: <359a92830905050536h596a26f5ha7b37f60fafc426b@mail.gmail.com> Subject: Re: How to het the score in percentage From: Erick Erickson To: java-user@lucene.apache.org Content-Type: multipart/alternative; boundary=0016364ec924a2324c0469298561 X-Virus-Checked: Checked by ClamAV on apache.org --0016364ec924a2324c0469298561 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit But to echo Chris, what does percentage mean? The percent of the words that matched? So, in your example, would document one match 75%, doc two 50% and doc three 100%? And what would that mean to a user? I think it would help if you backed up and told us *why* you want these percentages. A higher level view than just asking "how do I calculate percent". I have the feeling that this is an XY problem. i.e. you're asking about X, but the real problem is Y which may be unrelated. Best Erick On Tue, May 5, 2009 at 6:42 AM, joseph.christopher wrote: > > > joseph.christopher wrote: > > > > > > thanks for the reply, > > > > By percentage, what I meant is that how much matching is the retrived > > result with the search query. > > > > for exmple : if I have 3 indexed documnts like > > > > 1) chicken onion cheese pizza > > > > 2) mixed vegetable cheese pizza > > > > 3) cheese pizza > > > > and I searched for "chicken cheese pizza" > > > > Is it possibe that the system can give a percentage match score for the > > search result ,compairing it with the search query. > > > > > > > > > > > > > > Hi Experts, > > > > We are in a procees of changing our existing fuzzy search engine to > > lucene, > > but we are facing a roadblock > > here ie, in our existing system we are showing the search score in > > percenetage but lucene provides the search score in numbers which is > > derived > > from some internal logic. Can anybody give some tips for converting the > > lucene score to percentage or is there any way to retrive the score as > > percentage from lucene search. > > > > Thanks in advance. > > > > > > -- > > View this message in context: > > > http://www.nabble.com/How-to-het-the-score-in-percentage-tp23293723p23293723.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 > > > > > > > > -- > View this message in context: > http://www.nabble.com/How-to-het-the-score-in-percentage-tp23293756p23384986.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 > > --0016364ec924a2324c0469298561--